test/spec_methodoverride.rb in rack-1.4.7 vs test/spec_methodoverride.rb in rack-1.5.0.beta.1

- old
+ new

@@ -63,10 +63,13 @@ EOF env = Rack::MockRequest.env_for("/", "CONTENT_TYPE" => "multipart/form-data, boundary=AaB03x", "CONTENT_LENGTH" => input.size.to_s, :method => "POST", :input => input) - app.call env + begin + app.call env + rescue EOFError + end env["REQUEST_METHOD"].should.equal "POST" end end