Commit 7a623907 authored by Robert Speicher's avatar Robert Speicher

Merge branch '20121-add-a-new-have_html_escaped_body_text-matcher' into 'master'

Add a new have_html_escaped_body_text that match an HTML-escaped text

Closes #20121

See merge request !10015
parents 2b2ce1b2 517598ba
This diff is collapsed.
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment