Update confirmable_test.rb

This commit is contained in:
bogdanvlviv
2016-02-06 20:37:31 +02:00
parent beb8cc8e0b
commit d9481ff9b8

View File

@@ -188,7 +188,7 @@ class ConfirmableTest < ActiveSupport::TestCase
test 'confirm time should fallback to devise confirm in default configuration' do
swap Devise, allow_unconfirmed_access_for: 1.day do
user = new_user
user = create_user
user.confirmation_sent_at = 2.days.ago
assert_not user.active_for_authentication?