summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 12:44:40 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 15:37:25 +0100
commitf39601b64de9cfef601ffbed3ea1665ec21987a7 (patch)
treeccf79bee325e16f629d2a797968763f9eaad9324
parent4eb2add1c358470297af751f5eb51139671e7f4d (diff)
downloadbundler-f39601b64de9cfef601ffbed3ea1665ec21987a7.tar.gz
Use activation hack in default gem activation specs
It's super useful when figuring out which part of bundler is activating a default gem.
-rw-r--r--spec/runtime/setup_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 10adbf773b..80c38e9f4a 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1276,7 +1276,7 @@ end
gem "#{g}", "999999"
G
- expect(the_bundle).to include_gem("#{g} 999999")
+ expect(the_bundle).to include_gem("#{g} 999999", :env => { "RUBYOPT" => activation_warning_hack_rubyopt })
end
it "activates older versions of #{g}" do
@@ -1291,7 +1291,7 @@ end
gem "#{g}", "0.0.0.a"
G
- expect(the_bundle).to include_gem("#{g} 0.0.0.a")
+ expect(the_bundle).to include_gem("#{g} 0.0.0.a", :env => { "RUBYOPT" => activation_warning_hack_rubyopt })
end
end
end