diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-26 19:02:19 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-05 09:25:43 +0200 |
commit | c688337e24f24bc36b64f4cdb21a54e5e55eb27d (patch) | |
tree | f5e51382bf23379ef89a0857706b611fb76539d5 | |
parent | 7ac854dea100036f68c9a6db063db73ff0328a1e (diff) | |
download | bundler-c688337e24f24bc36b64f4cdb21a54e5e55eb27d.tar.gz |
More specific assertion
1.0.0 is such a common output, and it was hiding a crash in the test.
-rw-r--r-- | spec/commands/exec_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 3045f7229e..b9be5d7c02 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -40,7 +40,7 @@ RSpec.describe "bundle exec" do bundle "exec 'cd #{tmp("gems")} && rackup'" - expect(out).to include("1.0.0") + expect(out).to eq("1.0.0") end it "works when exec'ing something else" do @@ -458,7 +458,7 @@ RSpec.describe "bundle exec" do it "works when locked" do expect(the_bundle).to be_locked bundle "exec 'cd #{tmp("gems")} && rackup'" - expect(out).to include("1.0.0") + expect(out).to eq("1.0.0") end end |