aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-16 19:49:46 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-16 19:49:46 -0500
commitcd6301557005617583e3f9ca5fb56297adcce7cc (patch)
treec247095256af92a0978dd767dd8f1cca2bc7c719 /actionpack/lib/action_controller
parentf7fdbae770275ccbc277c42287b9783cb00fa9fa (diff)
downloadrails-cd6301557005617583e3f9ca5fb56297adcce7cc.tar.gz
rails-cd6301557005617583e3f9ca5fb56297adcce7cc.tar.bz2
rails-cd6301557005617583e3f9ca5fb56297adcce7cc.zip
All 2xx requests are considered successful [#217 state:resolved]
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
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?