1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

update rack fixture to be ruby 1.9 compat

This commit is contained in:
Joshua Peek 2009-03-15 23:48:07 -05:00
parent 0706de4301
commit 4185a4a5f5

View file

@ -389,9 +389,9 @@ class MetalTest < ActionController::IntegrationTest
class Poller
def self.call(env)
if env["PATH_INFO"] =~ /^\/success/
[200, {"Content-Type" => "text/plain", "Content-Length" => "12"}, "Hello World!"]
[200, {"Content-Type" => "text/plain", "Content-Length" => "12"}, ["Hello World!"]]
else
[404, {"Content-Type" => "text/plain", "Content-Length" => "0"}, '']
[404, {"Content-Type" => "text/plain", "Content-Length" => "0"}, []]
end
end
end