diff options
author | Terence Lee <hone02@gmail.com> | 2010-10-19 16:57:35 -0500 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2010-10-26 21:04:43 -0500 |
commit | 2ee93898e2e15758d5d840029f1a7c5e56026908 (patch) | |
tree | 80731191a84bf83707f122a06836b0152f14aece /spec/other/clean_spec.rb | |
parent | 3f86380694ed7429194974418894906ea3ac48cd (diff) | |
download | bundler-2ee93898e2e15758d5d840029f1a7c5e56026908.tar.gz |
bundle clean requires --path to be set
Diffstat (limited to 'spec/other/clean_spec.rb')
-rw-r--r-- | spec/other/clean_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/other/clean_spec.rb b/spec/other/clean_spec.rb index 2b5f27c2..2cfb2819 100644 --- a/spec/other/clean_spec.rb +++ b/spec/other/clean_spec.rb @@ -191,4 +191,17 @@ describe "bundle clean" do vendored_gems("bin/rackup").should exist end + + it "displays an error when used without --path" do + install_gemfile <<-G + source "file://#{gem_repo1}" + + gem "rack", "1.0.0" + G + + bundle :install + bundle :clean + + out.should == "Can only use bundle clean when --path is set" + end end |