email = ActionMailer::Base.deliveries.last
assert_equal trace.user.email, email.to[0]
assert_match(/success/, email.subject)
+
+ ActionMailer::Base.deliveries.clear
end
def test_failure_notification
email = ActionMailer::Base.deliveries.last
assert_equal trace.user.email, email.to[0]
assert_match(/failure/, email.subject)
+
+ ActionMailer::Base.deliveries.clear
end
def test_error_notification
email = ActionMailer::Base.deliveries.last
assert_equal trace.user.email, email.to[0]
assert_match(/failure/, email.subject)
+
+ ActionMailer::Base.deliveries.clear
end
end