diff options
author | Erich Menge <erich.menge@me.com> | 2012-04-01 08:39:57 -0500 |
---|---|---|
committer | Erich Menge <erich.menge@me.com> | 2012-04-01 08:39:57 -0500 |
commit | 6e814ce62f8225c5f23f7a73d2896699ea99af48 (patch) | |
tree | 215091263e96a95cbadf72328f4741ad2d2459ce /actionpack/lib | |
parent | bf8c3eb55ac037afc63875a2d78ad0799f56a3cc (diff) | |
download | rails-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.rb | 2 |
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 |