gitlab-org--gitlab-foss/spec/support/matchers/email_matchers.rb

6 lines
166 B
Ruby

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