mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
fixed email autotest
This commit is contained in:
parent
ea7b7f6019
commit
6476c7c805
2 changed files with 5 additions and 3 deletions
|
@ -9,4 +9,6 @@ TEST_EMAILS = %w(
|
||||||
norman.aeg@internet.ee
|
norman.aeg@internet.ee
|
||||||
martti.oigus@internet.ee
|
martti.oigus@internet.ee
|
||||||
jana.jarve@internet.ee
|
jana.jarve@internet.ee
|
||||||
|
test@example.com
|
||||||
|
test@example.org
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,9 +27,9 @@ describe ContactMailer do
|
||||||
|
|
||||||
describe 'email changed notification' do
|
describe 'email changed notification' do
|
||||||
before :all do
|
before :all do
|
||||||
@contact = Fabricate(:contact, email: 'test@example.ee')
|
@contact = Fabricate(:contact, email: 'test@example.com')
|
||||||
@contact.deliver_emails = true
|
@contact.deliver_emails = true
|
||||||
@contact.email = 'test@example.com' # new email
|
@contact.email = 'test@example.org' # new email
|
||||||
@mail = ContactMailer.email_updated(@contact)
|
@mail = ContactMailer.email_updated(@contact)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ describe ContactMailer do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should have both old and new receiver email' do
|
it 'should have both old and new receiver email' do
|
||||||
@mail.to.should == ['test@example.com', 'test@example.ee']
|
@mail.to.should == ["test@example.org", "test@example.com"]
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should render body' do
|
it 'should render body' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue