aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2013-03-07 10:19:37 -0800
committerTerence Lee <hone02@gmail.com>2013-03-07 10:19:37 -0800
commit4488c5db74a0936d8a419623543e76d6c37b65bf (patch)
tree02ad08a8e2efd0cc712d70f4d8bd0299c6aba73e /spec/other
parent253c299b00d4b059c381eae2522ce058e691befb (diff)
downloadbundler-4488c5db74a0936d8a419623543e76d6c37b65bf.tar.gz
don't store dry-run as a setting
Diffstat (limited to 'spec/other')
-rw-r--r--spec/other/clean_spec.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/other/clean_spec.rb b/spec/other/clean_spec.rb
index 6c832850..393902ba 100644
--- a/spec/other/clean_spec.rb
+++ b/spec/other/clean_spec.rb
@@ -559,4 +559,34 @@ describe "bundle clean" do
expect(vendored_gems("bin/rackup")).to exist
end
+
+ it "doesn't store dry run as a config setting" do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+
+ gem "thin"
+ gem "foo"
+ G
+
+ bundle "install --path vendor/bundle --no-clean"
+ bundle "config dry_run false"
+
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+
+ gem "thin"
+ G
+
+ bundle :install
+
+ bundle "clean"
+
+ expect(out).to eq("Removing foo (1.0)")
+ expect(out).not_to eq("Would have removed foo (1.0)")
+
+ should_have_gems 'thin-1.0', 'rack-1.0.0'
+ should_not_have_gems 'foo-1.0'
+
+ expect(vendored_gems("bin/rackup")).to exist
+ end
end