Skip to content

Commit

Permalink
Add one more test for background notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Aug 8, 2011
1 parent 9f5cebd commit 6ac8e8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/background_exception_notification_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ac8e8f

Please sign in to comment.