From cd6301557005617583e3f9ca5fb56297adcce7cc Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 16 Jul 2008 19:49:46 -0500 Subject: All 2xx requests are considered successful [#217 state:resolved] --- actionpack/lib/action_controller/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 0b160ff41d..721592b81f 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -171,7 +171,7 @@ module ActionController #:nodoc: # Was the response successful? def success? - response_code == 200 + (200..299).include?(response_code) end # Was the URL not found? -- cgit v1.2.3