summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-09-14 10:37:47 +0900
committerTerence Lee <hone02@gmail.com>2012-09-14 10:37:47 +0900
commit7dd2ad05eb685ebf73b3de2cf4316fcddc5ad0b6 (patch)
tree8e2f6348a99df52ac6c0581aea73071098e5db5f
parenta6833dc952130f6bfcce8507ad13fa9062d7968b (diff)
downloadbundler-7dd2ad05eb685ebf73b3de2cf4316fcddc5ad0b6.tar.gz
test to ensure bundle clean works when suing BUNDLE_WITHOUT groups
-rw-r--r--spec/other/clean_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/other/clean_spec.rb b/spec/other/clean_spec.rb
index 5a481609ad..fc8bd7781a 100644
--- a/spec/other/clean_spec.rb
+++ b/spec/other/clean_spec.rb
@@ -234,6 +234,24 @@ describe "bundle clean" do
vendored_gems("cache/bundler/git/foo-#{digest}").should exist
end
+ it "does not blow up when using without groups" do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+
+ gem "rack"
+
+ group :development do
+ gem "foo"
+ end
+ G
+
+ bundle "install --path vendor/bundle --without development"
+
+ bundle :clean, :exitstatus => true
+ exitstatus.should == 0
+ end
+
+
it "displays an error when used without --path" do
install_gemfile <<-G
source "file://#{gem_repo1}"