Skip to content

Commit

Permalink
fix ordering of assert_equal in assert_redirected_to. boy, that sure …
Browse files Browse the repository at this point in the history
…would be easier with rspec or bacon :)
  • Loading branch information
technoweenie committed Jul 6, 2008
1 parent c3aaba0 commit 7459623
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit 7459623

Please sign in to comment.