Rack responses need to wrap Strings in 1.9

This commit is contained in:
Yehuda Katz
2009-10-15 16:37:27 -07:00
parent e9d6bcd19f
commit c44d560145

View File

@@ -327,7 +327,7 @@ class RescueTest < ActionController::IntegrationTest
test 'rescue routing exceptions' do
@app = ActionDispatch::Rescue.new(ActionController::Routing::Routes) do
rescue_from ActionController::RoutingError, lambda { |env| [200, {"Content-Type" => "text/html"}, "Gotcha!"] }
rescue_from ActionController::RoutingError, lambda { |env| [200, {"Content-Type" => "text/html"}, ["Gotcha!"]] }
end
get '/b00m'