Permalink
Browse files

Ruby 1.9: fix invalid rack response in test

  • Loading branch information...
1 parent da90fe9 commit c5537c1158c91e3244d24751b1e86290b136dc09 @jeremy jeremy committed May 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/dispatch/request/xml_params_parsing_test.rb
@@ -21,7 +21,7 @@ class Linted
def call(env)
bar = env['action_dispatch.request.request_parameters']['foo']
result = "<ok>#{bar}</ok>"
- [200, {"Content-Type" => "application/xml", "Content-Length" => result.length.to_s}, result]
+ [200, {"Content-Type" => "application/xml", "Content-Length" => result.length.to_s}, [result]]
end
end
req = Rack::MockRequest.new(ActionDispatch::ParamsParser.new(Linted.new))

0 comments on commit c5537c1

Please sign in to comment.