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’
expected /Enrollment Date:/, got “”
Here is the example:
it ‘should contain completed enrollment form in email body’ do
@email.should have_text(/Enrollment Date:/)