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/test/controller/components_test.rb | |
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/test/controller/components_test.rb')
-rw-r--r-- | actionpack/test/controller/components_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/components_test.rb b/actionpack/test/controller/components_test.rb index 82c55483dd..71e8a18071 100644 --- a/actionpack/test/controller/components_test.rb +++ b/actionpack/test/controller/components_test.rb @@ -119,7 +119,7 @@ class ComponentsTest < Test::Unit::TestCase def test_component_redirect_redirects get :calling_redirected - assert_redirected_to :action => "being_called" + assert_redirected_to :controller=>"callee", :action => "being_called" end def test_component_multiple_redirect_redirects |