class MetalIntegrationTest::Poller
Public Class Methods
call(env)
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 559 def self.call(env) if env["PATH_INFO"] =~ /^\/success/ [200, { "Content-Type" => "text/plain", "Content-Length" => "12" }, ["Hello World!"]] else [404, { "Content-Type" => "text/plain", "Content-Length" => "0" }, []] end end