diff options
author | Boggs <hello@boggs.xyz> | 2016-07-29 11:31:12 +0800 |
---|---|---|
committer | Boggs <hello@boggs.xyz> | 2016-07-29 11:38:19 +0800 |
commit | aafc067f7f54b2bfaab0267d445eec6753d1f1da (patch) | |
tree | b40fe73e82b5d3dc5fb23c9938faac45074bada4 | |
parent | 5b502cf02c970fb53578d1fbae0df992028db65c (diff) | |
download | bundler-aafc067f7f54b2bfaab0267d445eec6753d1f1da.tar.gz |
Add positive assertion
-rw-r--r-- | spec/commands/install_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index bd01284df9..89a9138dab 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -491,6 +491,7 @@ 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}.") @@ -500,7 +501,8 @@ describe "bundle install with gem sources" do it "should not print warning if versions match" do bundle :init - bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "#{Bundler::VERSION}" } + bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => Bundler::VERSION } + expect(out).to start_with("Running `bundle install --no-color` with bundler #{Bundler::VERSION}\nThe Gemfile specifies no dependencies") expect(out).not_to include("You're running Bundler #{Bundler::VERSION} but this project uses #{Bundler::VERSION}.") end end |