Our application sends e-mail using a number of templates based on the
situation. We would like to test that the appropriate template is
getting rendered based on the controller state. assert_template would
work to test which template is being rendered to the browser. But
this doesn’t tell us which template was used to send the e-mail.
Anyone have a solution to this problem?