In my ActionMailer::TestCase test, I\'m expecting:
@expected.to = BuyadsproMailer.group_to(campaign.agency.users) @expected.subject = \"You submitted #{off
I had something similar where I wanted to check an attached csv's content. I needed something like this because it looks like \r got inserted for newlines:
\r
expect(mail.attachments.first.body.encoded.gsub(/\r/, '')).to( eq( <<~CSV "Foo","Bar" "1","2" CSV ) )