summaryrefslogtreecommitdiff
path: root/spec/other/show_spec.rb
diff options
context:
space:
mode:
authorTieg Zaharia <tieg.zaharia@gmail.com>2011-08-23 11:08:52 -0400
committerAndre Arko <andre@arko.net>2011-09-17 18:04:51 -0700
commit5adbc8af7609aa895567b474c311078364500d4a (patch)
tree2a7df8de12e3e4e443358e41d17c091387139699 /spec/other/show_spec.rb
parent53485dc95ebf75241ad63df6671924a74bfa8906 (diff)
downloadbundler-5adbc8af7609aa895567b474c311078364500d4a.tar.gz
adds a '--paths' flag to 'bundle show' to list all the paths of bundled gems
closes #1360
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r--spec/other/show_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb
index c8f2b51839..24331354dd 100644
--- a/spec/other/show_spec.rb
+++ b/spec/other/show_spec.rb
@@ -38,6 +38,12 @@ describe "bundle show" do
bundle "show missing"
out.should =~ /could not find gem 'missing'/i
end
+
+ it "prints path of all gems in bundle" do
+ bundle "show --paths"
+ out.should include(default_bundle_path('gems', 'rake-0.8.7'))
+ out.should include(default_bundle_path('gems', 'rails-2.3.2'))
+ end
end
describe "bundle show with a git repo" do