##// END OF EJS Templates
Test failure....
Jean-Philippe Lang -
r9761:c02594af96cd
parent child
Show More
@@ -149,6 +149,7 class AccountControllerTest < ActionController::TestCase
149 149 end
150 150
151 151 def test_lost_password_for_active_user_should_create_a_token
152 Token.delete_all
152 153 assert_difference 'ActionMailer::Base.deliveries.size' do
153 154 assert_difference 'Token.count' do
154 155 with_settings :host_name => 'mydomain.foo', :protocol => 'http' do
@@ -168,6 +169,7 class AccountControllerTest < ActionController::TestCase
168 169 end
169 170
170 171 def test_lost_password_for_unknown_user_should_fail
172 Token.delete_all
171 173 assert_no_difference 'Token.count' do
172 174 post :lost_password, :mail => 'invalid@somenet.foo'
173 175 assert_response :success
@@ -175,6 +177,7 class AccountControllerTest < ActionController::TestCase
175 177 end
176 178
177 179 def test_lost_password_for_non_active_user_should_fail
180 Token.delete_all
178 181 assert User.find(2).lock!
179 182
180 183 assert_no_difference 'Token.count' do
General Comments 0
You need to be logged in to leave comments. Login now