Browse files

All 2xx requests are considered successful [#217 state:resolved]

  • Loading branch information...
1 parent 6fbd6c0 commit 0e10e93fcf8ab68944e3e76195e75cae8e72cae3 @josh josh committed with tarmo Jul 16, 2008
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/test_process.rb
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*2.1.1 (next release)*
+* All 2xx requests are considered successful [Josh Peek]
+
* Deprecate the limited follow_redirect in functional tests. If you wish to follow redirects, use integration tests. [Michael Koziarski]
* Deprecate define_javascript_functions, javascript_include_tag and friends are much better [Michael Koziarski]
View
2 actionpack/lib/action_controller/test_process.rb
@@ -171,7 +171,7 @@ def message
# Was the response successful?
def success?
- response_code == 200
+ (200..299).include?(response_code)
end
# Was the URL not found?

0 comments on commit 0e10e93

Please sign in to comment.