diff options
-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 |