diff options
Diffstat (limited to 'spec/commands')
-rw-r--r-- | spec/commands/exec_spec.rb | 10 | ||||
-rw-r--r-- | spec/commands/package_spec.rb | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 7b0da1694c..1d9e5f2ed5 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -225,7 +225,7 @@ RSpec.describe "bundle exec" do [true, false].each do |l| bundle! "config disable_exec_load #{l}" bundle "exec rackup" - expect(err).to include "can't find executable rackup for gem rack. rack is not currently included in the bundle, perhaps you meant to add it to your Gemfile?" + expect(last_command.stderr).to include "can't find executable rackup for gem rack. rack is not currently included in the bundle, perhaps you meant to add it to your Gemfile?" end end @@ -239,7 +239,7 @@ RSpec.describe "bundle exec" do [true, false].each do |l| bundle! "config disable_exec_load #{l}" bundle "exec rackup" - expect(err).to include "rack is not part of the bundle. Add it to your Gemfile." + expect(last_command.stderr).to include "rack is not part of the bundle. Add it to your Gemfile." end end @@ -519,8 +519,8 @@ RSpec.describe "bundle exec" do it "like a normally executed executable" do subject expect(exitstatus).to eq(exit_code) if exitstatus - expect(err).to eq(expected_err) - expect(out).to eq(expected) + expect(last_command.stderr).to eq(expected_err) + expect(last_command.stdout).to eq(expected) end end @@ -730,7 +730,7 @@ __FILE__: #{path.to_s.inspect} # sanity check that we get the newer, custom version without bundler sys_exec("#{Gem.ruby} #{file}") - expect(err).to include("custom openssl should not be loaded") + expect(last_command.stderr).to include("custom openssl should not be loaded") end end end diff --git a/spec/commands/package_spec.rb b/spec/commands/package_spec.rb index 5ecc215b59..9b0de7f4e4 100644 --- a/spec/commands/package_spec.rb +++ b/spec/commands/package_spec.rb @@ -162,7 +162,7 @@ RSpec.describe "bundle package" do gem 'rack' D - bundle "package --no-install" + bundle! "package --no-install" expect(the_bundle).not_to include_gems "rack 1.0.0" expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist @@ -174,8 +174,8 @@ RSpec.describe "bundle package" do gem 'rack' D - bundle "package --no-install" - bundle "install" + bundle! "package --no-install" + bundle! "install" expect(the_bundle).to include_gems "rack 1.0.0" end |