mandelbro/ROR2014-portfolio — pull request #7 by mandelbro (2014-05-20 09:19:30+00:00)
Title: Feature/email on rails #11879617411591

Completes Asana task https://app.asana.com/0/11169835259596/11879617411591

Question
I've never been all that into creating content on a site through email, but I can definitely see a lot of cool applications of this technique, like an email to a support address that creates a new ticket in Sprintly, Asana, or JIRA (but hopefully not JIRA). I'm wondering if it's easy to setup custom email aliases to the incoming email you get from Postmark, 7ebd914ad3d99d4f41561c689157d1ce@inbound.postmarkapp.com is kind of hard to remember.

Collaborators

I was able to get things working by following the Sitepoint article, although, their test was complete nonsense. Unless I'm missing something, they're basically setting up an empty email and comparing it to the email message that gets sent out, it will always be different since the email that gets sent out has content, the test shouldn't ever pass.

As a workaround, I was able to implement the fixtures method from the Rails Guides, which was pretty nifty: http://guides.rubyonrails.org/testing.html#testing-your-mailers

Btw, there is a lot of cool stuff going on here #Rails2Strong