summaryrefslogtreecommitdiff
path: root/spec/commands/install_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/install_spec.rb')
-rw-r--r--spec/commands/install_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb
index ea2c3c0078..89a9138dab 100644
--- a/spec/commands/install_spec.rb
+++ b/spec/commands/install_spec.rb
@@ -498,5 +498,12 @@ describe "bundle install with gem sources" do
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).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
end