-
-
Save rob-race/f1bbf8645b8e402e7f0c93b517758d39 to your computer and use it in GitHub Desktop.
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
FactoryGirl.define do | |
factory :email, class: OpenStruct do | |
# Assumes Griddler.configure.to is :hash (default) | |
to [ | |
{ | |
full: 'to_user@email.com', | |
email: 'to_user@email.com', | |
token: 'to_user', | |
host: 'email.com', | |
name: nil | |
} | |
] | |
from( | |
token: 'from_user', | |
host: 'email.com', | |
email: 'from_email@email.com', | |
full: 'From User <from_user@email.com>', | |
name: 'From User' | |
) | |
subject 'email subject' | |
body '[d] Did a thing\n[t] Doing a thing\n[b] Blocked by a thing' | |
headers {'Message-ID <98984d@Robs-MacBook-Air.local.mail>'} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment