From 6ac8e8f079faa1fb5f3f6c7da7ebc86214727b3e Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 8 Aug 2011 18:42:47 -0300 Subject: [PATCH] Add one more test for background notifications. --- test/background_exception_notification_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/background_exception_notification_test.rb b/test/background_exception_notification_test.rb index 2721a562..248d3967 100644 --- a/test/background_exception_notification_test.rb +++ b/test/background_exception_notification_test.rb @@ -30,6 +30,10 @@ class BackgroundExceptionNotificationTest < ActiveSupport::TestCase assert @mail.subject.include? "[Dummy ERROR] (ZeroDivisionError) \"divided by 0\"" end + test "mail should say exception was raised in background" do + assert @mail.body.include? "A ZeroDivisionError occurred in background" + end + test "mail should contain backtrace in body" do assert @mail.body.include? "test/background_exception_notification_test.rb:6" end