diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-12-18 10:45:35 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-12-19 10:26:44 +0100 |
commit | 6e8cc096c7ca41ff006333fc2d865f1f04ed6e20 (patch) | |
tree | 150f545f4af1f4b092755888ba983051a3e9866d /spec/runtime | |
parent | 24a40c6c8256db3372fcc7894e10dc7384e36851 (diff) | |
download | bundler-6e8cc096c7ca41ff006333fc2d865f1f04ed6e20.tar.gz |
Modify specs to not be affected by deprecations
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/with_unbundled_env_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime/with_unbundled_env_spec.rb b/spec/runtime/with_unbundled_env_spec.rb index 9900429da5..60f8dd5105 100644 --- a/spec/runtime/with_unbundled_env_spec.rb +++ b/spec/runtime/with_unbundled_env_spec.rb @@ -78,7 +78,7 @@ RSpec.describe "Bundler.with_env helpers" do code = "print #{modified_env}.has_key?('BUNDLE_PATH')" ENV["BUNDLE_PATH"] = "./foo" bundle_exec_ruby! code.dump - expect(last_command.stdboth).to eq "false" + expect(last_command.stdboth).to include "false" end it "should remove '-rbundler/setup' from RUBYOPT" do @@ -92,7 +92,7 @@ RSpec.describe "Bundler.with_env helpers" do code = "print #{modified_env}['RUBYLIB']" ENV["RUBYLIB"] = root.join("lib").to_s + File::PATH_SEPARATOR + "/foo" bundle_exec_ruby! code.dump - expect(last_command.stdboth).to eq("/foo") + expect(last_command.stdboth).to include("/foo") end it "should restore the original MANPATH" do @@ -100,7 +100,7 @@ RSpec.describe "Bundler.with_env helpers" do ENV["MANPATH"] = "/foo" ENV["BUNDLER_ORIG_MANPATH"] = "/foo-original" bundle_exec_ruby! code.dump - expect(last_command.stdboth).to eq("/foo-original") + expect(last_command.stdboth).to include("/foo-original") end end |