Permalink
Browse files

Spec for error on install after changing locked Gemfile

  • Loading branch information...
1 parent ef6a00f commit c25f61e251e400e4626ebf620c40062b2bda4e6b @indirect indirect committed Apr 12, 2010
Showing with 13 additions and 2 deletions.
  1. +13 −2 spec/lock/gems_spec.rb
@@ -57,8 +57,19 @@
gem "rack", "1.0.0"
G
- bundle :install
-
+ bundle :check
out.should =~ /You changed your Gemfile after locking. Please relock using `bundle lock`/
end
+
+ it "errors gracefully on install after changing your Gemfile" do
+ bundle :lock
+
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack", "1.0.0"
+ G
+
+ bundle :install
+ out.should =~ /You changed your Gemfile after locking. Please run `bundle install --relock`/
+ end
end

0 comments on commit c25f61e

Please sign in to comment.