Fixed test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9945 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-08 07:20:48 +00:00
parent c02594af96
commit ab96a29460

View File

@ -150,6 +150,7 @@ class AccountControllerTest < ActionController::TestCase
def test_lost_password_for_active_user_should_create_a_token def test_lost_password_for_active_user_should_create_a_token
Token.delete_all Token.delete_all
ActionMailer::Base.deliveries.clear
assert_difference 'ActionMailer::Base.deliveries.size' do assert_difference 'ActionMailer::Base.deliveries.size' do
assert_difference 'Token.count' do assert_difference 'Token.count' do
with_settings :host_name => 'mydomain.foo', :protocol => 'http' do with_settings :host_name => 'mydomain.foo', :protocol => 'http' do