[rspec-users] RSpec Email-Spec Problem
lists at ruby-forum.com
Tue Jul 13 13:50:10 EDT 2010
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:/)
Posted via http://www.ruby-forum.com/.
More information about the rspec-users