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:
parent
0706de4301
commit
4185a4a5f5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue