diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-14 14:31:12 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-21 16:32:22 +0100 |
commit | 2610e6c7fc68a7f7ae48f99fea4c082838944665 (patch) | |
tree | 0b648afb6fb0a874d3bf54b89aafd52ddd52ac22 | |
parent | 6ce532267500a13cb855021fad93920e9f940baa (diff) | |
download | bundler-2610e6c7fc68a7f7ae48f99fea4c082838944665.tar.gz |
Change some specs checking the wrong stream
-rw-r--r-- | spec/runtime/with_unbundled_env_spec.rb | 8 | ||||
-rw-r--r-- | spec/update/redownload_spec.rb | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/runtime/with_unbundled_env_spec.rb b/spec/runtime/with_unbundled_env_spec.rb index 5ddcc24ed4..6de23494f3 100644 --- a/spec/runtime/with_unbundled_env_spec.rb +++ b/spec/runtime/with_unbundled_env_spec.rb @@ -106,7 +106,7 @@ RSpec.describe "Bundler.with_env helpers" do it "prints a deprecation", :bundler => 2 do code = "Bundler.clean_env" bundle_exec_ruby! code.dump - expect(last_command.stdboth).to include( + expect(err).to include( "[DEPRECATED FOR 2.0] `Bundler.clean_env` has been deprecated in favor of `Bundler.unbundled_env`. " \ "If you instead want the environment before bundler was originally loaded, use `Bundler.original_env`" ) @@ -115,7 +115,7 @@ RSpec.describe "Bundler.with_env helpers" do it "does not print a deprecation", :bundler => "< 2" do code = "Bundler.clean_env" bundle_exec_ruby! code.dump - expect(last_command.stdboth).not_to include( + expect(out).not_to include( "[DEPRECATED FOR 2.0] `Bundler.clean_env` has been deprecated in favor of `Bundler.unbundled_env`. " \ "If you instead want the environment before bundler was originally loaded, use `Bundler.original_env`" ) @@ -156,7 +156,7 @@ RSpec.describe "Bundler.with_env helpers" do it "prints a deprecation", :bundler => 2 do code = "Bundler.with_clean_env {}" bundle_exec_ruby! code.dump - expect(last_command.stdboth).to include( + expect(err).to include( "[DEPRECATED FOR 2.0] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. " \ "If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env`" ) @@ -165,7 +165,7 @@ RSpec.describe "Bundler.with_env helpers" do it "does not print a deprecation", :bundler => "< 2" do code = "Bundler.with_clean_env {}" bundle_exec_ruby! code.dump - expect(last_command.stdboth).not_to include( + expect(out).not_to include( "[DEPRECATED FOR 2.0] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. " \ "If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env`" ) diff --git a/spec/update/redownload_spec.rb b/spec/update/redownload_spec.rb index 2653d5d1a3..2c0ed3ad38 100644 --- a/spec/update/redownload_spec.rb +++ b/spec/update/redownload_spec.rb @@ -33,12 +33,12 @@ RSpec.describe "bundle update" do describe "with --redownload" do it "does not show a deprecation when single flag passed" do bundle! "update rack --redownload" - expect(out).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" + expect(err).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" end it "does not show a deprecation when single multiple flags passed" do bundle! "update rack --no-color --redownload" - expect(out).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" + expect(err).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" end end end |