BigW Consortium Gitlab

Commit 517598ba by 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: 's avatarRémy Coutable <remy@rymai.me>
parent f016da62
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