1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] More specific assertion

1.0.0 is such a common output, and it was hiding a crash in the test.

https://github.com/bundler/bundler/commit/c688337e24
This commit is contained in:
David Rodríguez 2019-04-26 19:02:19 +02:00 committed by Hiroshi SHIBATA
parent 13e5bf3454
commit 05c3b7c8a9
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -40,7 +40,7 @@ RSpec.describe "bundle exec" do
bundle "exec 'cd #{tmp("gems")} && rackup'" bundle "exec 'cd #{tmp("gems")} && rackup'"
expect(out).to include("1.0.0") expect(out).to eq("1.0.0")
end end
it "works when exec'ing something else" do it "works when exec'ing something else" do
@ -458,7 +458,7 @@ RSpec.describe "bundle exec" do
it "works when locked" do it "works when locked" do
expect(the_bundle).to be_locked expect(the_bundle).to be_locked
bundle "exec 'cd #{tmp("gems")} && rackup'" bundle "exec 'cd #{tmp("gems")} && rackup'"
expect(out).to include("1.0.0") expect(out).to eq("1.0.0")
end end
end end