Skip to content

Commit 6ac8e8f

Browse files
committed
Add one more test for background notifications.
1 parent 9f5cebd commit 6ac8e8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/background_exception_notification_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class BackgroundExceptionNotificationTest < ActiveSupport::TestCase
3030
assert @mail.subject.include? "[Dummy ERROR] (ZeroDivisionError) \"divided by 0\""
3131
end
3232

33+
test "mail should say exception was raised in background" do
34+
assert @mail.body.include? "A ZeroDivisionError occurred in background"
35+
end
36+
3337
test "mail should contain backtrace in body" do
3438
assert @mail.body.include? "test/background_exception_notification_test.rb:6"
3539
end

0 commit comments

Comments
 (0)