Renamed Mailer#test to Mailer#test_email.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9080 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-04 12:38:34 +00:00
parent 1b923819e8
commit d862843c9d
7 changed files with 10 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ class AdminControllerTest < ActionController::TestCase
end
def test_test_email_failure_should_display_the_error
Mailer.stubs(:deliver_test).raises(Exception, 'Some error message')
Mailer.stubs(:deliver_test_email).raises(Exception, 'Some error message')
get :test_email
assert_redirected_to '/settings/edit?tab=notifications'
assert_match /Some error message/, flash[:error]