mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Clean up settings after tests
This commit is contained in:
parent
840f1db5c9
commit
7fcab05e51
15 changed files with 74 additions and 22 deletions
|
@ -5,9 +5,14 @@ class DomainCronTest < ActiveSupport::TestCase
|
|||
|
||||
setup do
|
||||
@domain = domains(:shop)
|
||||
@original_expire_pending_confirmation = Setting.expire_pending_confirmation
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
teardown do
|
||||
Setting.expire_pending_confirmation = @original_expire_pending_confirmation
|
||||
end
|
||||
|
||||
def test_clean_expired_pendings_notifies_registrant_by_email
|
||||
Setting.expire_pending_confirmation = 0
|
||||
@domain.update!(registrant_verification_asked_at: Time.zone.now,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue