mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Rack responses need to wrap Strings in 1.9
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user