2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Users with no email_tokens return true from email_confirmed

This commit is contained in:
Neil Lalonde 2013-02-12 10:12:32 -05:00
parent 4668cf1d54
commit 238032051e
2 changed files with 2 additions and 2 deletions

View file

@ -638,7 +638,7 @@ describe User do
it 'should return false' do
user.email_tokens.each {|t| t.destroy}
user.reload
user.email_confirmed?.should be_false
user.email_confirmed?.should be_true
end
end
end