lib/sinatra/test.rb in bmizerany-sinatra-0.8.9 vs lib/sinatra/test.rb in bmizerany-sinatra-0.8.10

- old
+ new

@@ -58,9 +58,14 @@ else super end end + # Also check @response since we delegate there. + def respond_to?(symbol, include_private=false) + super || (@response && @response.respond_to?(symbol, include_private)) + end + RACK_OPT_NAMES = { :accept => "HTTP_ACCEPT", :agent => "HTTP_USER_AGENT", :host => "HTTP_HOST", :session => "HTTP_COOKIE",