We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f63be50 commit ba5dd0aCopy full SHA for ba5dd0a
1 file changed
test/models/confirmable_test.rb
@@ -486,4 +486,18 @@ class ReconfirmableTest < ActiveSupport::TestCase
486
:unconfirmed_email
487
]
488
end
489
+
490
+ test 'should not require reconfirmation after creating a record' do
491
+ user = create_admin
492
+ assert !user.pending_reconfirmation?
493
+ end
494
495
+ test 'should not require reconfirmation after creating a record with #save called in callback' do
496
+ class Admin::WithSaveInCallback < Admin
497
+ after_create :save
498
499
500
+ user = Admin::WithSaveInCallback.create(valid_attributes.except(:username))
501
502
503
0 commit comments