summaryrefslogtreecommitdiff
path: root/spec/install/force_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/install/force_spec.rb')
-rw-r--r--spec/install/force_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/install/force_spec.rb b/spec/install/force_spec.rb
new file mode 100644
index 0000000000..46b75cf4cc
--- /dev/null
+++ b/spec/install/force_spec.rb
@@ -0,0 +1,20 @@
+require "spec_helper"
+
+describe "bundle install" do
+ describe "with --force" do
+ before :each do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ G
+
+ bundle "install"
+ end
+
+ it "re-installs installed gems" do
+ bundle "install --force"
+ expect(out).to match /Installing rack 1\.0\.0/
+ should_be_installed "rack 1.0.0"
+ end
+ end
+end