From b5a00eca148421807746692244c5e574f52c8e7a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 27 Jun 2016 14:39:40 +0200 Subject: [PATCH] Improved visualisation of delivery failed message. --- test/integration/email_deliver_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/email_deliver_test.rb b/test/integration/email_deliver_test.rb index 34f6793e8..ffb946792 100644 --- a/test/integration/email_deliver_test.rb +++ b/test/integration/email_deliver_test.rb @@ -246,7 +246,6 @@ class EmailDeliverTest < ActiveSupport::TestCase assert_raises(RuntimeError) { Scheduler.worker(true) } - article2_lookup = Ticket::Article.find(article2.id) assert_equal(2, ticket1.articles.count) assert_equal(3, article2_lookup.preferences['delivery_retry']) @@ -255,8 +254,9 @@ class EmailDeliverTest < ActiveSupport::TestCase assert(article2_lookup.preferences['delivery_status_message']) sleep 16 - Scheduler.worker(true) - + assert_raises(RuntimeError) { + Scheduler.worker(true) + } article2_lookup = Ticket::Article.find(article2.id) article_delivery_system = ticket1.articles.last assert_equal(3, ticket1.articles.count)