diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-06-23 19:46:15 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-04 10:41:40 +0300 |
commit | c3aaba0180f0710094d974b4ba4659bce81446df (patch) | |
tree | bed34c6b4caa1952dabba71af6f95dae02322af4 /actionpack/CHANGELOG | |
parent | db5839107951b000633fa8405f78e5c315b6656a (diff) | |
download | rails-c3aaba0180f0710094d974b4ba4659bce81446df.tar.gz rails-c3aaba0180f0710094d974b4ba4659bce81446df.tar.bz2 rails-c3aaba0180f0710094d974b4ba4659bce81446df.zip |
Simplify the implementation of assert_redirected_to to normalise the urls before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion.
Also allows for assert_redirected_to @some_record
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 7f275bef27..a99811c715 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -18,6 +18,11 @@ * Made ActionView::Base#render_file private [Josh Peek] +* Refactor and simplify the implementation of assert_redirected_to. Arguments are now normalised relative to the controller being tested, not the root of the application. [Michael Koziarski] + + This could cause some erroneous test failures if you were redirecting between controllers + in different namespaces and wrote your assertions relative to the root of the application. + * Remove follow_redirect from controller functional tests. If you want to follow redirects you can use integration tests. The functional test |