diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 21cc7a9c647f099931cf1d1b261ddc8e25e49df4..da9fdbfd9d1e84bba4ef6db766b652a189227baa 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *Edge* +* All 2xx requests are considered successful [Josh Peek] + * Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host along with the source or per-request proc's won't run [DHH] * Removed config.action_view.cache_template_loading, use config.cache_classes instead [Josh Peek] diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 0b160ff41db98e7391a3fb2074e5ce596b483031..721592b81f37ace09efd1cdc61f3dae88c54a395 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/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?