aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/translation.rb
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2015-12-04 08:33:21 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2015-12-04 13:13:25 +0530
commit1ee87e42caa832510dfb4a1cb6c7643620447166 (patch)
tree5fe0e339ede05280353f10c607c2762c16baab4f /actionpack/lib/abstract_controller/translation.rb
parent8bdbf88dfd231f80b8e757b36e77ff72e6b6b83c (diff)
downloadrails-1ee87e42caa832510dfb4a1cb6c7643620447166.tar.gz
rails-1ee87e42caa832510dfb4a1cb6c7643620447166.tar.bz2
rails-1ee87e42caa832510dfb4a1cb6c7643620447166.zip
Add redirection path in the error message of assert_response if response is :redirect
- If the assert_response is checking for any non-redirect response like :success and actual response is :redirect then, the error message displayed was - Expected response to be a <success>, but was <302> - This commit adds the redirect path to the error message of assert_response if the response is :redirect. So above message is changed to - Expected response to be a <success>, but was a redirect to <http://test.host/posts/lol>
Diffstat (limited to 'actionpack/lib/abstract_controller/translation.rb')
0 files changed, 0 insertions, 0 deletions