Commit 517598ba authored by Rémy Coutable's avatar Rémy Coutable

Add a new have_html_escaped_body_text that match an HTML-escaped text

This solves transient failures when a text contains HTML-escapable
characters such as `'`.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent f016da62
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