aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/show_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-02 12:48:29 -0700
committerAndre Arko <andre@arko.net>2010-04-02 12:53:07 -0700
commitb4958b53485f37bd1f595e7e9e222195ef252273 (patch)
treeac8376e9e76cb1402eb5a661d948353d0f633802 /spec/other/show_spec.rb
parentb9ed78c664966a4f7756d18d67ebaf8bd3e6dc65 (diff)
downloadbundler-b4958b53485f37bd1f595e7e9e222195ef252273.tar.gz
Fix check, show, and open commands while locked. Closes #237.
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r--spec/other/show_spec.rb19
1 files changed, 18 insertions, 1 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb
index b69c298f..548c28bf 100644
--- a/spec/other/show_spec.rb
+++ b/spec/other/show_spec.rb
@@ -17,4 +17,21 @@ describe "bundle show" do
bundle "show missing"
out.should =~ /could not find gem 'missing'/i
end
-end
+
+ describe "while locked" do
+ before :each do
+ bundle :lock
+ end
+
+ it "prints path if gem exists in bundle" do
+ bundle "show rails"
+ out.should == default_bundle_path('gems', 'rails-2.3.2').to_s
+ end
+
+ it "complains if gem not in bundle" do
+ bundle "show missing"
+ out.should =~ /could not find gem 'missing'/i
+ end
+ end
+
+end \ No newline at end of file