Skip to content

Commit c5537c1

Browse files
committed
Ruby 1.9: fix invalid rack response in test
1 parent da90fe9 commit c5537c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/test/dispatch/request/xml_params_parsing_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Linted
2121
def call(env)
2222
bar = env['action_dispatch.request.request_parameters']['foo']
2323
result = "<ok>#{bar}</ok>"
24-
[200, {"Content-Type" => "application/xml", "Content-Length" => result.length.to_s}, result]
24+
[200, {"Content-Type" => "application/xml", "Content-Length" => result.length.to_s}, [result]]
2525
end
2626
end
2727
req = Rack::MockRequest.new(ActionDispatch::ParamsParser.new(Linted.new))

0 commit comments

Comments
 (0)