[rspec-users] RSpec Email-Spec Problem

Rails Learner lists at ruby-forum.com
Tue Jul 13 13:50:10 EDT 2010


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
expected /Enrollment Date:/, got ""


Here is the example:
it 'should contain completed enrollment form in email body' do
     @email.should have_text(/Enrollment Date:/)
end

Many thanks!
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list