debian-mirror-gitlab/spec/support/matchers/email_matchers.rb

6 lines
166 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
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