summaryrefslogtreecommitdiff
path: root/spec/install/deploy_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-10-11 18:25:18 -0700
committerAndre Arko <andre@arko.net>2010-10-11 18:25:18 -0700
commit5df892e3b6bbe94d3dcc00872739abecee8b3247 (patch)
tree5e875eb4cceab5aeb6c8fbe608e120808c16abd4 /spec/install/deploy_spec.rb
parent11e79e3cd6364b1e971539c688bc6ca28ba74c59 (diff)
downloadbundler-5df892e3b6bbe94d3dcc00872739abecee8b3247.tar.gz
Allow installing after --deployment fails due to missing lock
Breaking things after there was an error really, really sucks. Fixes #749.
Diffstat (limited to 'spec/install/deploy_spec.rb')
-rw-r--r--spec/install/deploy_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index 6ad43b7e70..8be2b67506 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -18,6 +18,13 @@ describe "install with --deployment or --frozen" do
out.should include("The --frozen flag requires a Gemfile.lock")
end
+ it "works after you try to deploy without a lock", :focus => true do
+ bundle "install --deployment"
+ bundle :install, :exit_status => true
+ exitstatus.should == 0
+ should_be_installed "rack 1.0"
+ end
+
it "still works if you are not in the app directory and specify --gemfile" do
bundle "install"
Dir.chdir tmp