Skip to content
This repository
Browse code

Integration tests use Rack::Lint on 1.9 also

  • Loading branch information...
commit aebd1ba5b49248d88df3bff9ac765f847595ab34 1 parent ec10f13
Jeremy Kemper authored June 08, 2009
7  actionpack/lib/action_controller/integration.rb
@@ -309,12 +309,7 @@ def process(method, path, parameters = nil, headers = nil)
309 309
 
310 310
           ActionController::Base.clear_last_instantiation!
311 311
 
312  
-          app = @application
313  
-          # Rack::Lint doesn't accept String headers or bodies in Ruby 1.9
314  
-          unless RUBY_VERSION >= '1.9.0' && Rack.release <= '0.9.0'
315  
-            app = Rack::Lint.new(app)
316  
-          end
317  
-
  312
+          app = Rack::Lint.new(@application)
318 313
           status, headers, body = app.call(env)
319 314
           @request_count += 1
320 315
 

0 notes on commit aebd1ba

Please sign in to comment.
Something went wrong with that request. Please try again.