diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-08 10:41:56 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:49 +0900 |
commit | 7551117c70cdc33f4dd8a72a1a9151f23c73f902 (patch) | |
tree | 63ad3513184a0aea150da39c1d0efca0da16d894 /spec/bundler/bundler | |
parent | 9995ce64a251e51eabc6300d38980c4139f92d86 (diff) |
[bundler/bundler] Reuse more shared path helpers
https://github.com/bundler/bundler/commit/79fdebd868
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r-- | spec/bundler/bundler/shared_helpers_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/bundler/bundler/shared_helpers_spec.rb b/spec/bundler/bundler/shared_helpers_spec.rb index 910854fe46..c5ec939978 100644 --- a/spec/bundler/bundler/shared_helpers_spec.rb +++ b/spec/bundler/bundler/shared_helpers_spec.rb @@ -223,14 +223,6 @@ RSpec.describe Bundler::SharedHelpers do ENV["BUNDLE_GEMFILE"] = "Gemfile" end - let(:setup_path) do - if ruby_core? - File.expand_path("../../../lib/bundler/setup", __dir__) - else - File.expand_path("../../lib/bundler/setup", __dir__) - end - end - shared_examples_for "ENV['PATH'] gets set correctly" do before { Dir.mkdir ".bundle" } @@ -244,7 +236,7 @@ RSpec.describe Bundler::SharedHelpers do shared_examples_for "ENV['RUBYOPT'] gets set correctly" do it "ensures -rbundler/setup is at the beginning of ENV['RUBYOPT']" do subject.set_bundle_environment - expect(ENV["RUBYOPT"].split(" ")).to start_with("-r#{setup_path}") + expect(ENV["RUBYOPT"].split(" ")).to start_with("-r#{lib}/bundler/setup") end end |