[rspec-users] Testing html email content with have_selector rspec2 rails3 fails
raldred at gmail.com
Tue Nov 30 07:10:15 EST 2010
Previously on rails 2.x
I have been able to test the content of my html actionmailer emails.
In rspec 1.x:
@mailer = OrderMailer.create_receipt(@order)
I have changed to rspec 2.x style
@mailer = OrderMailer.receipt(@order)
@body = @mailer.encoded
I suspect theres something else that have_tag was doing that
have_selector is not?
Am I doing something wrong? Is there a better way to tests the content
of my emails?
Maybe I should never have tested email content this way, is it more a
job for cucumber?
Look forward to your responses.
More information about the rspec-users