aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/check_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/check_spec.rb
parentc26b2c309432bdcc5397ac0d3bac3831c2a30929 (diff)
downloadbundler-e9c300abb3846002306534aa562c26e8e261c3ee.tar.gz
Remove the call to lock from Runtime#initialize
Diffstat (limited to 'spec/other/check_spec.rb')
-rw-r--r--spec/other/check_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/other/check_spec.rb b/spec/other/check_spec.rb
index 056af50a..188351a3 100644
--- a/spec/other/check_spec.rb
+++ b/spec/other/check_spec.rb
@@ -12,6 +12,19 @@ describe "bundle check" do
out.should == "The Gemfile's dependencies are satisfied"
end
+ it "creates a Gemfile.lock if one did not exist" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rails"
+ G
+
+ FileUtils.rm("Gemfile.lock")
+
+ bundle "check"
+
+ bundled_app("Gemfile.lock").should exist
+ end
+
it "shows what is missing with the current Gemfile if it is not satisfied" do
gemfile <<-G
source "file://#{gem_repo1}"