summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-02-01 11:50:53 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-02-01 15:45:25 -0600
commit0d63bb68d4e7ee7ca658018ca8b4af1edf1ae6b9 (patch)
treef77daf7d3cc504fc3802d3624afe80f0eb5585af
parent0d171a7a1ac47ee9df7b735c2d7e9d396168dea3 (diff)
downloadbundler-0d63bb68d4e7ee7ca658018ca8b4af1edf1ae6b9.tar.gz
[Platform] Add spec for --ruby with multiple requirements
-rw-r--r--spec/other/platform_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/other/platform_spec.rb b/spec/other/platform_spec.rb
index be71582b54..8d546fca57 100644
--- a/spec/other/platform_spec.rb
+++ b/spec/other/platform_spec.rb
@@ -228,6 +228,15 @@ G
bundle! "platform --ruby"
expect(out).to eq("ruby 1.8.7")
end
+
+ it "handles when there are multiple requirements in the gemfile" do
+ gemfile <<-G
+ ruby ">= 1.8.7", "< 2.0.0"
+ G
+
+ bundle! "platform --ruby"
+ expect(out).to eq("ruby 1.8.7")
+ end
end
let(:ruby_version_correct) { "ruby \"#{RUBY_VERSION}\", :engine => \"#{local_ruby_engine}\", :engine_version => \"#{local_engine_version}\"" }