fixed email autotest

This commit is contained in:
Priit Tark 2015-05-12 18:07:52 +03:00
parent ea7b7f6019
commit 6476c7c805
2 changed files with 5 additions and 3 deletions

View file

@ -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
)

View file

@ -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