diff options
author | fotanus@gmail.com <Felipe Tanus> | 2015-06-03 22:40:44 -0300 |
---|---|---|
committer | fotanus@gmail.com <Felipe Tanus> | 2015-06-03 22:40:44 -0300 |
commit | c0d6a0026a611f2cc6fd116cd3fc532b4aed56c6 (patch) | |
tree | e0fabb370fa0cb2380c45bae52b6af28ccad6247 /spec/lock | |
parent | 49dd255b977fbf3dda5ac2ff84efa5c995137fc4 (diff) | |
download | bundler-c0d6a0026a611f2cc6fd116cd3fc532b4aed56c6.tar.gz |
Avoid showing warning messages twice
Diffstat (limited to 'spec/lock')
-rw-r--r-- | spec/lock/lockfile_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb index 727ddea2..3b8e2eac 100644 --- a/spec/lock/lockfile_spec.rb +++ b/spec/lock/lockfile_spec.rb @@ -140,8 +140,9 @@ describe "the lockfile format" do G end - expect(out).to include("Warning: the running version of Bundler is " \ - "older than the version that created the lockfile") + warning_message = "Warning: the running version of Bundler is " \ + "older than the version that created the lockfile" + expect(out.scan(warning_message).size).to eq(1) lockfile_should_be <<-G GEM |