mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Moving perishable inclusion to active_record devise, to include just once. Also refactor confirm! method.
This commit is contained in:
@@ -52,7 +52,7 @@ class PerishableTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test 'should generate a sha1 hash for perishable token' do
|
||||
ActiveSupport::SecureRandom.expects(:base64).with(15).times(3).returns('perishable token')
|
||||
ActiveSupport::SecureRandom.expects(:base64).with(15).twice.returns('perishable token')
|
||||
assert_equal 'perishable token', create_user.perishable_token
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user