Permalink
Browse files

fix ordering of assert_equal in assert_redirected_to. boy, that sure …

…would be easier with rspec or bacon :)
  • Loading branch information...
technoweenie committed Jul 6, 2008
1 parent c3aaba0 commit 74596233f1af1b2fc0c42fbee089c46aaf302514
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/assertions/response_assertions.rb
@@ -66,7 +66,7 @@ def assert_redirected_to(options = {}, message=nil)
redirected_to_after_normalisation = normalize_argument_to_redirection(@response.redirected_to)
options_after_normalisation = normalize_argument_to_redirection(options)
- assert_equal redirected_to_after_normalisation, options_after_normalisation,
+ assert_equal options_after_normalisation, redirected_to_after_normalisation,
"Expected response to be a redirect to <#{options_after_normalisation}> but was a redirect to <#{redirected_to_after_normalisation}>"
end
end

0 comments on commit 7459623

Please sign in to comment.