I'm using rspec with the email-spec gem. I'm trying to do:
last_delivery = ActionMailer::Base.deliveries.last
last_delivery.body.should include "This is the text of the email"
But that doesn't work, is there a way to say body, text version? Content-Type: text/text?
Thanks
last_delivery.parts.first.body.raw_source.should include "This is the text of the email"
– Gossoon