diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 17:51:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 17:51:30 +0000 |
commit | 0b9609468094fdb99ea9e0b68677dd178f85538c (patch) | |
tree | 736718d4e4684810e593863cfa051ac1a6a68251 /test/functional/admin_controller_test.rb | |
parent | cf66561b1ef5f80360588bc4e4691bf464cd88fc (diff) | |
download | redmine-0b9609468094fdb99ea9e0b68677dd178f85538c.tar.gz redmine-0b9609468094fdb99ea9e0b68677dd178f85538c.zip |
Use named routes in controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10981 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/admin_controller_test.rb')
-rw-r--r-- | test/functional/admin_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb index 94d0c32cf..28e8adb60 100644 --- a/test/functional/admin_controller_test.rb +++ b/test/functional/admin_controller_test.rb @@ -90,7 +90,7 @@ class AdminControllerTest < ActionController::TestCase ActionMailer::Base.deliveries.clear get :test_email - assert_redirected_to '/settings/edit?tab=notifications' + assert_redirected_to '/settings?tab=notifications' mail = ActionMailer::Base.deliveries.last assert_not_nil mail user = User.find(1) @@ -100,7 +100,7 @@ class AdminControllerTest < ActionController::TestCase def test_test_email_failure_should_display_the_error Mailer.stubs(:test_email).raises(Exception, 'Some error message') get :test_email - assert_redirected_to '/settings/edit?tab=notifications' + assert_redirected_to '/settings?tab=notifications' assert_match /Some error message/, flash[:error] end |