summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-26 19:02:19 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:57 +0900
commit05c3b7c8a9238186c4073f5ebb8c5ce6da7495f2 (patch)
treea52c2c0d96de7bc51853aa919e7bcacda58bb29d /spec
parent13e5bf3454c1b13fdbb0c583fe68a73238cdffa2 (diff)
[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
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/exec_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index 3045f7229e..b9be5d7c02 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/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