* fix batch_mailer tests

This commit is contained in:
Seth Call 2014-04-04 20:02:44 +01:00
parent 26d7b067f1
commit d1622cfd95
2 changed files with 1 additions and 2 deletions

View File

@ -88,7 +88,7 @@ FOO
def send_test_batch
self.perform_event('do_test_run!')
BatchMailer.send_batch_email_test(self.id).deliver
BatchMailer.send_batch_email_test(self.id).deliver!
end
def merged_body(user)

View File

@ -7,7 +7,6 @@ describe BatchMailer do
batch = FactoryGirl.create(:email_batch)
batch.send_test_batch
sleep(3)
mail = BatchMailer.deliveries.detect { |dd| dd['to'].to_s.split(',')[0] == batch.test_emails.split(',')[0]}
# let (:mail) { BatchMailer.deliveries[0] }