debian-mirror-gitlab/spec/support/matchers/email_matchers.rb
2017-08-17 22:00:37 +05:30

5 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