Open briri opened 4 years ago
@martaribeiro here is an example of how a feature test that validates that an email was sent: https://github.com/CDLUC3/dmptool/blob/691216627b703039b7802ddd40e1a728b970fd84/spec/features/authentication/reset_password_spec.rb#L104
Write unit tests for all mailer functions and view tests ensure that the email content is correct.