Permalink
Browse files

Rack responses need to wrap Strings in 1.9

  • Loading branch information...
1 parent e9d6bcd commit c44d560145cc332d48b9fbacbc7d23954ebb4a46 @wycats wycats committed Oct 15, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/controller/rescue_test.rb
@@ -327,7 +327,7 @@ def show_errors(exception)
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'

0 comments on commit c44d560

Please sign in to comment.