Skip to content

Instantly share code, notes, and snippets.

@tomykaira
Created September 21, 2014 23:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tomykaira/4300882ce33e5ac9e7a3 to your computer and use it in GitHub Desktop.
How to use letter_opener for debugging mail messages in tests
it do
require 'letter_opener'
mail.delivery_method LetterOpener::DeliveryMethod, location: Rails.root.join('tmp', 'letter_opener').to_s
mail.deliver
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment