mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Add extended registrar's info to "expiration" and "force_delete" mailers
registry-180
This commit is contained in:
parent
411079f654
commit
69be717b91
17 changed files with 362 additions and 73 deletions
|
@ -831,6 +831,7 @@ end
|
|||
RSpec.describe Domain, db: false do
|
||||
it { is_expected.to alias_attribute(:on_hold_time, :outzone_at) }
|
||||
it { is_expected.to alias_attribute(:delete_time, :delete_at) }
|
||||
it { is_expected.to alias_attribute(:force_delete_time, :force_delete_at) }
|
||||
|
||||
describe '#set_server_hold' do
|
||||
let(:domain) { described_class.new }
|
||||
|
@ -896,4 +897,20 @@ RSpec.describe Domain, db: false do
|
|||
expect(domain.nameserver_hostnames).to eq('hostnames')
|
||||
end
|
||||
end
|
||||
|
||||
describe '#primary_contact_emails' do
|
||||
let(:domain) { described_class.new }
|
||||
|
||||
before :example do
|
||||
expect(domain).to receive(:registrant_email).and_return('registrant@test.com')
|
||||
expect(domain).to receive(:admin_contact_emails).and_return(['admin.contact.email@test.com'])
|
||||
end
|
||||
|
||||
it 'returns registrant and administrative contact emails' do
|
||||
expect(domain.primary_contact_emails).to match_array(%w(
|
||||
registrant@test.com
|
||||
admin.contact.email@test.com
|
||||
))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue