mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Contact email change notification update #2558
This commit is contained in:
parent
cd1f04f155
commit
f6b61a7ac5
2 changed files with 13 additions and 4 deletions
|
@ -27,7 +27,8 @@ describe ContactMailer do
|
|||
|
||||
describe 'email changed notification' do
|
||||
before :all do
|
||||
@contact = Fabricate(:contact, email: 'test@example.com')
|
||||
@domain = Fabricate(:domain)
|
||||
@contact = @domain.registrant
|
||||
@contact.deliver_emails = true
|
||||
@contact.email = 'test@example.org' # new email
|
||||
@mail = ContactMailer.email_updated(@contact)
|
||||
|
@ -42,7 +43,8 @@ describe ContactMailer do
|
|||
end
|
||||
|
||||
it 'should have both old and new receiver email' do
|
||||
@mail.to.should == ["test@example.org", "test@example.com"]
|
||||
@mail.to.size.should == 2
|
||||
@mail.to.include? "test@example.org"
|
||||
end
|
||||
|
||||
it 'should render body' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue