mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
107821878-refactoring
This commit is contained in:
parent
90ad9ff887
commit
99a66259f0
9 changed files with 46 additions and 46 deletions
|
@ -8,7 +8,7 @@ describe ContactMailer do
|
|||
describe 'email changed notification when delivery turned off' do
|
||||
before :all do
|
||||
@contact = Fabricate(:contact, email: 'test@example.ee')
|
||||
@mail = ContactMailer.email_updated('test@example.com', @contact.id)
|
||||
@mail = ContactMailer.email_updated('test@example.com', @contact.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should not render email subject' do
|
||||
|
@ -34,7 +34,7 @@ describe ContactMailer do
|
|||
@contact = @domain.registrant
|
||||
@contact.reload # until figured out why registrant_domains not loaded
|
||||
@contact.deliver_emails = true
|
||||
@mail = ContactMailer.email_updated('info@example.org', @contact.id)
|
||||
@mail = ContactMailer.email_updated('info@example.org', @contact.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -60,7 +60,7 @@ describe ContactMailer do
|
|||
@contact = @domain.registrant
|
||||
@contact.reload # until figured out why registrant_domains not loaded
|
||||
@contact.deliver_emails = true
|
||||
@mail = ContactMailer.email_updated('info@ääöü.org', @contact.id)
|
||||
@mail = ContactMailer.email_updated('info@ääöü.org', @contact.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
|
|
@ -9,7 +9,7 @@ describe DomainMailer do
|
|||
before :all do
|
||||
@registrant = Fabricate(:registrant, email: 'test@example.com')
|
||||
@domain = Fabricate(:domain, registrant: @registrant)
|
||||
@mail = DomainMailer.pending_update_request_for_old_registrant(@domain.id)
|
||||
@mail = DomainMailer.pending_update_request_for_old_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should not render email subject' do
|
||||
|
@ -38,7 +38,7 @@ describe DomainMailer do
|
|||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@domain.registrant = @new_registrant
|
||||
@mail = DomainMailer.pending_update_request_for_old_registrant(@domain.id)
|
||||
@mail = DomainMailer.pending_update_request_for_old_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -71,7 +71,7 @@ describe DomainMailer do
|
|||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@domain.registrant = @new_registrant
|
||||
@mail = DomainMailer.pending_update_notification_for_new_registrant(@domain.id)
|
||||
@mail = DomainMailer.pending_update_notification_for_new_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -100,7 +100,7 @@ describe DomainMailer do
|
|||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@domain.registrant = @new_registrant
|
||||
@mail = DomainMailer.pending_update_notification_for_new_registrant(@domain.id)
|
||||
@mail = DomainMailer.pending_update_notification_for_new_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -153,7 +153,7 @@ describe DomainMailer do
|
|||
@registrant = Fabricate(:registrant, email: 'test@example.com')
|
||||
@domain = Fabricate(:domain, registrant: @registrant)
|
||||
@domain.deliver_emails = true
|
||||
@mail = DomainMailer.registrant_updated_notification_for_new_registrant(@domain.id)
|
||||
@mail = DomainMailer.registrant_updated_notification_for_new_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -178,7 +178,7 @@ describe DomainMailer do
|
|||
@registrant = Fabricate(:registrant, email: 'test@example.com')
|
||||
@domain = Fabricate(:domain, registrant: @registrant)
|
||||
@domain.deliver_emails = true
|
||||
@mail = DomainMailer.registrant_updated_notification_for_old_registrant(@domain.id)
|
||||
@mail = DomainMailer.registrant_updated_notification_for_old_registrant(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -202,7 +202,7 @@ describe DomainMailer do
|
|||
before :all do
|
||||
@registrant = Fabricate(:registrant, email: 'test@example.com')
|
||||
@domain = Fabricate(:domain, registrant: @registrant)
|
||||
@mail = DomainMailer.pending_deleted(@domain.id)
|
||||
@mail = DomainMailer.pending_deleted(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should not render email subject' do
|
||||
|
@ -229,7 +229,7 @@ describe DomainMailer do
|
|||
@domain.deliver_emails = true
|
||||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@mail = DomainMailer.pending_deleted(@domain.id)
|
||||
@mail = DomainMailer.pending_deleted(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -260,7 +260,7 @@ describe DomainMailer do
|
|||
@domain.deliver_emails = true
|
||||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@mail = DomainMailer.pending_delete_rejected_notification(@domain.id)
|
||||
@mail = DomainMailer.pending_delete_rejected_notification(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -287,7 +287,7 @@ describe DomainMailer do
|
|||
@domain.deliver_emails = true
|
||||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@mail = DomainMailer.pending_delete_expired_notification(@domain.id)
|
||||
@mail = DomainMailer.pending_delete_expired_notification(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
@ -314,7 +314,7 @@ describe DomainMailer do
|
|||
@domain.deliver_emails = true
|
||||
@domain.registrant_verification_token = '123'
|
||||
@domain.registrant_verification_asked_at = Time.zone.now
|
||||
@mail = DomainMailer.delete_confirmation(@domain.id)
|
||||
@mail = DomainMailer.delete_confirmation(@domain.id, deliver_emails)
|
||||
end
|
||||
|
||||
it 'should render email subject' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue