Permalink
Browse files

Ruby 1.9 compat: omit Rack::Lint from integration tests until it acce…

…pts String headers and bodies
  • Loading branch information...
1 parent bc94061 commit a02d752ae408b34e048b7b040e28c36074a9119f @jeremy jeremy committed Jan 31, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/action_controller/integration.rb
@@ -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

0 comments on commit a02d752

Please sign in to comment.