summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Suzuki <eagletmt@gmail.com>2016-07-02 17:00:44 +0900
committerSamuel Giddins <segiddins@segiddins.me>2016-08-24 15:20:28 -0500
commitb1a3a151ff410a7b727a98b86b0f19980ed7eb5c (patch)
tree642bed32bcb94c8580f8a7c6b49527079cda7cc1
parent66d38e44be72f58ccc21d7f27dc65d830dfff484 (diff)
downloadbundler-b1a3a151ff410a7b727a98b86b0f19980ed7eb5c.tar.gz
Fix test failures due to Rack 2.x
- Rack 2.x requires Ruby version >= 2.2.2 - artifice doesn't support rack 2.x now.
-rw-r--r--spec/support/rubygems_ext.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index 64cc41443d..5f1c43592a 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -6,7 +6,10 @@ module Spec
module Rubygems
DEPS = begin
deps = {
- "fakeweb artifice rack compact_index" => nil,
+ # rack 2.x requires Ruby version >= 2.2.2.
+ # artifice doesn't support rack 2.x now.
+ "rack" => "< 2",
+ "fakeweb artifice compact_index" => nil,
"sinatra" => "1.2.7",
# Rake version has to be consistent for tests to pass
"rake" => "10.0.2",
@@ -43,7 +46,7 @@ module Spec
def self.install_gem(name, version = nil)
cmd = "gem install #{name} --no-rdoc --no-ri"
- cmd += " --version #{version}" if version
+ cmd += " --version '#{version}'" if version
system(cmd) || raise("Installing gem #{name} for the tests to use failed!")
end