summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-08 13:41:03 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-12 09:25:06 -0400
commita5da088a6d8aa2bb14d5007dc7f70b25a50d79d7 (patch)
treef06982e7259c91ca4205ef8407068a93bad2e393 /spec/bundler
parentb874d63cd3cfdd2d52a5e6fa849c8b7a3f116d1b (diff)
downloadbundler-a5da088a6d8aa2bb14d5007dc7f70b25a50d79d7.tar.gz
Setup rubyopt to require bundler absolutely
This way, we will never leak to a different bundler copy.
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/shared_helpers_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb
index 7cd6aa7566..a9bf67b0d5 100644
--- a/spec/bundler/shared_helpers_spec.rb
+++ b/spec/bundler/shared_helpers_spec.rb
@@ -237,7 +237,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("-rbundler/setup")
+ expect(ENV["RUBYOPT"].split(" ")).to start_with("-r#{File.expand_path("../../lib/bundler/setup", __dir__)}")
end
end