From 14c22c74ddf22962c450a79058ec027e295f923e Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Mon, 8 Jun 2015 00:15:41 -0700 Subject: specs for bundler version warnings --- spec/commands/check_spec.rb | 4 +++- spec/runtime/setup_spec.rb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/commands/check_spec.rb b/spec/commands/check_spec.rb index 0213f4b7d1..ae20fc35db 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 diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 2950f925c3..a253d4e86e 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -937,9 +937,11 @@ describe "Bundler.setup" do end context "is newer" do - it "does not change the lock" do + it "does not change the lock or warn" do lockfile lock_with(Bundler::VERSION.succ) ruby "require 'bundler/setup'" + expect(out).to eq("") + expect(err).to eq("") lockfile_should_be lock_with(Bundler::VERSION.succ) end end -- cgit v1.2.1