Reputation: 45174
I'm having a problem where email attachments aren't coming through for certain emails, but are for others. I'm trying to figure out what's different about the emails that aren't working.
Is it possible to write a test for an Action Mailbox controller where the Mail
object I'm using gets generated from a raw email body, so that I can recreate the email conditions as close to reality as possible?
Upvotes: 0
Views: 288
Reputation: 45174
The answer is to use from_source
:
source = File.read("some_email_source.txt")
process(Mail.from_source(source))
Upvotes: 1