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