From 6476c7c805a5a59f349aca53691754c36d2d4b67 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 12 May 2015 18:07:52 +0300 Subject: [PATCH] fixed email autotest --- config/initializers/settings.rb | 2 ++ spec/mailers/contact_mailer_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/initializers/settings.rb b/config/initializers/settings.rb index 17149e45c..62adbb295 100644 --- a/config/initializers/settings.rb +++ b/config/initializers/settings.rb @@ -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 ) diff --git a/spec/mailers/contact_mailer_spec.rb b/spec/mailers/contact_mailer_spec.rb index 519f2bfcc..76b98e717 100644 --- a/spec/mailers/contact_mailer_spec.rb +++ b/spec/mailers/contact_mailer_spec.rb @@ -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