aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorErich Menge <erich.menge@me.com>2012-04-01 08:39:57 -0500
committerErich Menge <erich.menge@me.com>2012-04-01 08:39:57 -0500
commit6e814ce62f8225c5f23f7a73d2896699ea99af48 (patch)
tree215091263e96a95cbadf72328f4741ad2d2459ce /actionpack/lib
parentbf8c3eb55ac037afc63875a2d78ad0799f56a3cc (diff)
downloadrails-6e814ce62f8225c5f23f7a73d2896699ea99af48.tar.gz
rails-6e814ce62f8225c5f23f7a73d2896699ea99af48.tar.bz2
rails-6e814ce62f8225c5f23f7a73d2896699ea99af48.zip
:success includes the whole 200 range, not just 200.
# File lib/rack/response.rb, line 114 114: def successful?; @status >= 200 && @status < 300; end
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb
index a5e7a8c715..bea54f9778 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -8,7 +8,7 @@ module ActionDispatch
# Asserts that the response is one of the following types:
#
- # * <tt>:success</tt> - Status code was 200
+ # * <tt>:success</tt> - Status code was in the 200-299 range
# * <tt>:redirect</tt> - Status code was in the 300-399 range
# * <tt>:missing</tt> - Status code was 404
# * <tt>:error</tt> - Status code was in the 500-599 range