diff options
author | David RodrÃguez <[email protected]> | 2025-01-15 16:15:18 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-01-20 13:50:26 +0900 |
commit | 891ecc63ac5c232081eea9597bbf366239707b77 (patch) | |
tree | 822d1c4fa918f3fab9254deb20dcbe7565383b4d | |
parent | 976cee57b126cd0876bf3a1f1a1d58266e488643 (diff) |
[rubygems/rubygems] Consistently assert command failure
https://github.com/rubygems/rubygems/commit/faaa594a4a
-rw-r--r-- | spec/bundler/cache/gems_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gemfile/git_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/cache/gems_spec.rb b/spec/bundler/cache/gems_spec.rb index a694df2700..7563580aac 100644 --- a/spec/bundler/cache/gems_spec.rb +++ b/spec/bundler/cache/gems_spec.rb @@ -167,7 +167,7 @@ RSpec.describe "bundle cache" do G bundle :cache, raise_on_error: false - expect(exitstatus).to_not eq(0) + expect(last_command).to be_failure expect(err).to include("json-#{default_json_version} is built in to Ruby, and can't be cached") end end diff --git a/spec/bundler/install/gemfile/git_spec.rb b/spec/bundler/install/gemfile/git_spec.rb index 83b3c06cbe..ada74c311c 100644 --- a/spec/bundler/install/gemfile/git_spec.rb +++ b/spec/bundler/install/gemfile/git_spec.rb @@ -1068,7 +1068,7 @@ RSpec.describe "bundle install with git sources" do gem "foo", :git => "#{lib_path("foo-1.0")}" G - expect(exitstatus).to_not eq(0) + expect(last_command).to be_failure expect(err).to include("Bundler could not install a gem because it " \ "needs to create a directory, but a file exists " \ "- #{default_bundle_path("bundler")}") |