aboutsummaryrefslogtreecommitdiffstats
path: root/spec/commands/check_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-06-08 00:15:41 -0700
committerAndre Arko <andre@arko.net>2015-06-08 00:32:21 -0700
commit14c22c74ddf22962c450a79058ec027e295f923e (patch)
tree7b9f21d98f9d315e21982b2261290cf14b59966d /spec/commands/check_spec.rb
parent4d901fa071a69570011f81e6822950a5bfd7d305 (diff)
downloadbundler-14c22c74ddf22962c450a79058ec027e295f923e.tar.gz
specs for bundler version warnings
Diffstat (limited to 'spec/commands/check_spec.rb')
-rw-r--r--spec/commands/check_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/commands/check_spec.rb b/spec/commands/check_spec.rb
index 0213f4b7..ae20fc35 100644
--- a/spec/commands/check_spec.rb
+++ b/spec/commands/check_spec.rb
@@ -314,9 +314,11 @@ describe "bundle check" do
end
context "is newer" do
- it "does not change the lock" do
+ it "does not change the lock but warns" do
lockfile lock_with(Bundler::VERSION.succ)
bundle :check
+ expect(out).to include("Bundler is older than the version that created the lockfile")
+ expect(err).to eq("")
lockfile_should_be lock_with(Bundler::VERSION.succ)
end
end