mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Validate origin domains #2849
This commit is contained in:
parent
71b2763df6
commit
5ba39fb406
23 changed files with 99 additions and 24 deletions
|
@ -2,7 +2,7 @@ require 'rails_helper'
|
|||
|
||||
describe ContactMailer do
|
||||
describe 'email changed notification when delivery turned off' do
|
||||
before :all do
|
||||
before :all do
|
||||
@contact = Fabricate(:contact, email: 'test@example.ee')
|
||||
@mail = ContactMailer.email_updated('test@example.com', @contact)
|
||||
end
|
||||
|
@ -25,7 +25,8 @@ describe ContactMailer do
|
|||
end
|
||||
|
||||
describe 'email changed notification' do
|
||||
before :all do
|
||||
before :all do
|
||||
Fabricate(:zonefile_setting, origin: 'ee')
|
||||
@domain = Fabricate(:domain)
|
||||
@contact = @domain.registrant
|
||||
@contact.reload # until figured out why registrant_domains not loaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue