diff options
author | Boggs <hello@boggs.xyz> | 2016-07-28 02:07:41 +0800 |
---|---|---|
committer | Boggs <hello@boggs.xyz> | 2016-07-29 11:38:19 +0800 |
commit | 68901a8fedccd64580353606c89080c93d076827 (patch) | |
tree | b9814958628b7d9f47be27e4fe1dcf0fad0c0f02 | |
parent | 11e2feaca8c62aea28a749cb506e69b2f943132e (diff) | |
download | bundler-68901a8fedccd64580353606c89080c93d076827.tar.gz |
Add failing spec
-rw-r--r-- | spec/commands/install_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index ea2c3c0078..bd01284df9 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -491,12 +491,17 @@ describe "bundle install with gem sources" do gemfile <<-G source "file://#{gem_repo1}" G - bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "999" } expect(out).to include("You're running Bundler 999 but this project uses #{Bundler::VERSION}.") bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "999" } expect(out).not_to include("You're running Bundler 999 but this project uses #{Bundler::VERSION}.") end + + it "should not print warning if versions match" do + bundle :init + bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "#{Bundler::VERSION}" } + expect(out).not_to include("You're running Bundler #{Bundler::VERSION} but this project uses #{Bundler::VERSION}.") + end end end |