BigW Consortium Gitlab

email_matchers.rb 166 Bytes
Newer Older
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