[rubygems/rubygems] Consistently assert command failure

https://github.com/rubygems/rubygems/commit/faaa594a4a
This commit is contained in:
David Rodríguez 2025-01-15 16:15:18 +01:00 committed by Hiroshi SHIBATA
parent 976cee57b1
commit 891ecc63ac
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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")}")