summaryrefslogtreecommitdiff
path: root/spec/support/matchers/email_matchers.rb
blob: d9d59ec12ec20583acb4535f69004feb3b586b30 (plain)
1
2
3
4
5
RSpec::Matchers.define :have_html_escaped_body_text do |expected|
  match do |actual|
    expect(actual).to have_body_text(ERB::Util.html_escape(expected))
  end
end