Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix test failures due to Rack 2.x
Browse files Browse the repository at this point in the history
- Rack 2.x requires Ruby version >= 2.2.2
- artifice doesn't support rack 2.x now.
  • Loading branch information
eagletmt authored and segiddins committed Aug 24, 2016
1 parent 66d38e4 commit b1a3a15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/support/rubygems_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -43,7 +46,7 @@ def self.setup

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

Expand Down

0 comments on commit b1a3a15

Please sign in to comment.