[rubygems/rubygems] Consistently assert command failure
https://github.com/rubygems/rubygems/commit/faaa594a4a
This commit is contained in:
parent
976cee57b1
commit
891ecc63ac
2
spec/bundler/cache/gems_spec.rb
vendored
2
spec/bundler/cache/gems_spec.rb
vendored
@ -167,7 +167,7 @@ RSpec.describe "bundle cache" do
|
|||||||
G
|
G
|
||||||
|
|
||||||
bundle :cache, raise_on_error: false
|
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")
|
expect(err).to include("json-#{default_json_version} is built in to Ruby, and can't be cached")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1068,7 +1068,7 @@ RSpec.describe "bundle install with git sources" do
|
|||||||
gem "foo", :git => "#{lib_path("foo-1.0")}"
|
gem "foo", :git => "#{lib_path("foo-1.0")}"
|
||||||
G
|
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 " \
|
expect(err).to include("Bundler could not install a gem because it " \
|
||||||
"needs to create a directory, but a file exists " \
|
"needs to create a directory, but a file exists " \
|
||||||
"- #{default_bundle_path("bundler")}")
|
"- #{default_bundle_path("bundler")}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user