提交 a02d752a 编写于 作者: J Jeremy Kemper

Ruby 1.9 compat: omit Rack::Lint from integration tests until it accepts String headers and bodies

上级 bc940611
......@@ -308,7 +308,11 @@ def process(method, path, parameters = nil, headers = nil)
ActionController::Base.clear_last_instantiation!
app = Rack::Lint.new(@application)
app = @application
# Rack::Lint doesn't accept String headers or bodies in Ruby 1.9
unless RUBY_VERSION >= '1.9.0' && Rack.release <= '0.9.0'
app = Rack::Lint.new(app)
end
status, headers, body = app.call(env)
@request_count += 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册