summaryrefslogtreecommitdiff
path: root/spec/lock
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-20 16:11:53 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-20 16:11:53 -0700
commit7c01c7e7fb17763c9a0b709a83443b536494d048 (patch)
tree49a638cce7b42e5a01c418d167a1a6feb9831b33 /spec/lock
parent499025206d31837b0afe014f79b8ff68b14e7849 (diff)
downloadbundler-7c01c7e7fb17763c9a0b709a83443b536494d048.tar.gz
Support multiple version dependencies
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/flex_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/lock/flex_spec.rb b/spec/lock/flex_spec.rb
index 768d65cc8f..55f6b53c5b 100644
--- a/spec/lock/flex_spec.rb
+++ b/spec/lock/flex_spec.rb
@@ -495,4 +495,25 @@ describe "the lockfile format" do
rack
G
end
+
+ it "works correctly with multiple version dependencies" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack", "> 0.9", "< 1.0"
+ G
+
+ lockfile_should_be <<-G
+ GEM
+ remote: file:#{gem_repo1}/
+ specs:
+ rack (0.9.1)
+
+ PLATFORMS
+ ruby
+
+ DEPENDENCIES
+ rack (> 0.9, < 1.0)
+ G
+
+ end
end