summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarlo <karlo@aelogica.com>2015-06-22 18:31:04 +0800
committerAndre Arko <andre@arko.net>2015-06-23 21:31:50 -0700
commit08be389291ea70ca07605aa7dad0b10b98963aab (patch)
tree477907992cf044fd631629298edfe8219c3f75df
parent51dcc46aef5d1cb34f21097c39f8e8711504644c (diff)
downloadbundler-08be389291ea70ca07605aa7dad0b10b98963aab.tar.gz
Add test to ensure that bundle install --force works even when bundle is not yet created
-rw-r--r--spec/install/force_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/install/force_spec.rb b/spec/install/force_spec.rb
index 87cc0a2c12..fd695bdc0b 100644
--- a/spec/install/force_spec.rb
+++ b/spec/install/force_spec.rb
@@ -33,5 +33,14 @@ describe "bundle install" do
expect(out).to include "Using bundler 1.10.4"
end
+ it "works on first bundle install" do
+ bundle "install --force"
+
+ expect(out).to include "Installing rack 1.0.0"
+ should_be_installed "rack 1.0.0"
+ expect(exitstatus).to eq(0) if exitstatus
+ end
+
+
end
end