Created
January 23, 2016 03:15
-
-
Save paulcsmith/ff8f3d92e6a3f86608ad to your computer and use it in GitHub Desktop.
Bamboo assert_email_delivered/1 function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Something like this might make testing simpler | |
def assert_email_delivered(email) do | |
email = email |> Bamboo.Mailer.normalize_addresses | |
assert_received({:delivered_bamboo_email, ^email}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment