Skip to content

Commit ff145fe

Browse files
committed
work-around rack 1.6.0 reporting Rack.release as 1.5 :sadpanda:
1 parent 5046bfa commit ff145fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spec/ruby/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def servlet_30?
8282

8383
def rack_release(at_least = nil)
8484
require 'rack'; release = Rack.release
85+
release = '1.6' if Gem.loaded_specs['rack'].version.to_s == '1.6.0'
8586
at_least.nil? ? release : release >= at_least
8687
end
8788
private :rack_release

0 commit comments

Comments
 (0)