mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +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
|
||||
martti.oigus@internet.ee
|
||||
jana.jarve@internet.ee
|
||||
test@example.com
|
||||
test@example.org
|
||||
)
|
||||
|
|
|
@ -27,9 +27,9 @@ describe ContactMailer do
|
|||
|
||||
describe 'email changed notification' do
|
||||
before :all do
|
||||
@contact = Fabricate(:contact, email: 'test@example.ee')
|
||||
@contact = Fabricate(:contact, email: 'test@example.com')
|
||||
@contact.deliver_emails = true
|
||||
@contact.email = 'test@example.com' # new email
|
||||
@contact.email = 'test@example.org' # new email
|
||||
@mail = ContactMailer.email_updated(@contact)
|
||||
end
|
||||
|
||||
|
@ -42,7 +42,7 @@ describe ContactMailer do
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
it 'should render body' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue