I have figure this out.
I wanted to share this in case someone is having the same problem.
I have taken a different route to test email body:
Here is how my example looks now:
it "should contain child's first name and last name in email body" do
for part in @email.parts
if part["Conte
Anyone, who can help?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
Hi!
I am using email-spec gem with rspec to test email.
If the email is multipart email then the example fails.
The example passes if it's not multipart email.
Any advise on how to get it to pass.
Here is the error:
'Form Mailer should contain completed enrollment form in email body'
FAILED
expec