Skip to content

Commit

Permalink
Ruby 1.9 compat: omit Rack::Lint from integration tests until it acce…
Browse files Browse the repository at this point in the history
…pts String headers and bodies
  • Loading branch information
jeremy committed Jan 31, 2009
1 parent bc94061 commit a02d752
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actionpack/lib/action_controller/integration.rb
Expand Up @@ -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
Expand Down

0 comments on commit a02d752

Please sign in to comment.