diff options
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r-- | spec/other/show_spec.rb | 19 |
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 |