aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lock
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-11-13 22:38:54 -0600
committerAndre Arko <andre@arko.net>2010-11-14 01:46:26 -0600
commit4139386351098883ec4634b1f7f7995149e91e0b (patch)
treec34407a5be3113690adf8a2d918776c5519318d3 /spec/lock
parent0d3d1262898dd3700c7480b422b657576fd47623 (diff)
downloadbundler-4139386351098883ec4634b1f7f7995149e91e0b.tar.gz
mildly clean up locking with version, mostly whitespace and helpers
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/lockfile_spec.rb21
1 files changed, 10 insertions, 11 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 5880a301..790261b2 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -753,27 +753,26 @@ describe "the lockfile format" do
end
end
- it "rewrites the lock file when it's missing/coming from an older version fo bundler" do
+ it "adds bundler version to the lock if it's missing" do
install_gemfile <<-G
source "file://#{gem_repo1}"
gem "rack"
G
- lock_file = <<-G
-GEM
- remote: file:#{gem_repo1}/
- specs:
- rack (1.0.0)
+ lockfile <<-G
+ GEM
+ remote: file:#{gem_repo1}/
+ specs:
+ rack (1.0.0)
-PLATFORMS
- #{generic(Gem::Platform.local)}
+ PLATFORMS
+ #{generic(Gem::Platform.local)}
-DEPENDENCIES
- rack
+ DEPENDENCIES
+ rack
G
- File.open(bundled_app('Gemfile.lock'), 'w') {|file| file.write(lock_file) }
bundle :install
lockfile_should_be <<-G