Re: [rspec-users] Testing html email content with have_selector rspec2 rails3 fails

2010-12-20 Thread Andrew Premdas
Rob, This doesn't make sense 1. None of your examples here are using have_selector ! 2. Why is OrderMailer no longer creating a receipt 3. Why is @mailer being encoded Is mailer.body the same in both versions, can you show this. Have you tried using a debugger before the first have_tag line. A

[rspec-users] Testing html email content with have_selector rspec2 rails3 fails

2010-12-03 Thread Rob Aldred
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) @mailer.body.should have_tag('.order_number') @mailer.body.should have_tag('.billing_address') @mailer.body.should have_tag('.delivery_address')