summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rochkind <jonathan@friendsoftheweb.com>2016-08-09 12:02:12 -0400
committerJonathan Rochkind <jonathan@friendsoftheweb.com>2016-08-15 13:00:52 -0400
commita570842680d06f66b2e491e8be58a7532814ed07 (patch)
tree4535593292d1854aa4cfab72cfce543981198421
parent51838e3faaa5ea3d55e784acb94fe89d9ea98692 (diff)
downloadbundler-a570842680d06f66b2e491e8be58a7532814ed07.tar.gz
fix specs for bundler version warning with version numbers
-rw-r--r--spec/commands/check_spec.rb2
-rw-r--r--spec/lock/lockfile_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/commands/check_spec.rb b/spec/commands/check_spec.rb
index a1634566a3..42d6459760 100644
--- a/spec/commands/check_spec.rb
+++ b/spec/commands/check_spec.rb
@@ -331,7 +331,7 @@ describe "bundle check" 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(out).to include("the running version of Bundler (#{Bundler::VERSION}) is older than the version that created the lockfile (#{Bundler::VERSION.succ})")
expect(err).to lack_errors
lockfile_should_be lock_with(Bundler::VERSION.succ)
end
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 09a7411e3b..e6810b405f 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -176,8 +176,8 @@ describe "the lockfile format" do
G
end
- warning_message = "Warning: the running version of Bundler is " \
- "older than the version that created the lockfile"
+ warning_message = "the running version of Bundler (9999999.0.0) is older " \
+ "than the version that created the lockfile (9999999.1.0)"
expect(out.scan(warning_message).size).to eq(1)
lockfile_should_be <<-G