aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/show_spec.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-19 15:56:49 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-19 15:56:49 -0700
commite9c300abb3846002306534aa562c26e8e261c3ee (patch)
tree87db8a6c584a95ef3763200e76cb56cab7646152 /spec/other/show_spec.rb
parentc26b2c309432bdcc5397ac0d3bac3831c2a30929 (diff)
downloadbundler-e9c300abb3846002306534aa562c26e8e261c3ee.tar.gz
Remove the call to lock from Runtime#initialize
Diffstat (limited to 'spec/other/show_spec.rb')
-rw-r--r--spec/other/show_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/other/show_spec.rb b/spec/other/show_spec.rb
index a90a14be..352b607f 100644
--- a/spec/other/show_spec.rb
+++ b/spec/other/show_spec.rb
@@ -8,6 +8,22 @@ describe "bundle show" do
G
end
+ it "creates a Gemfile.lock if one did not exist" do
+ FileUtils.rm("Gemfile.lock")
+
+ bundle "show"
+
+ bundled_app("Gemfile.lock").should exist
+ end
+
+ it "creates a Gemfile.lock if one did not exist and we're doing bundle show rails" do
+ FileUtils.rm("Gemfile.lock")
+
+ bundle "show rails"
+
+ bundled_app("Gemfile.lock").should exist
+ 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