517598ba10
This solves transient failures when a text contains HTML-escapable characters such as `'`. Signed-off-by: Rémy Coutable <remy@rymai.me>
5 lines
166 B
Ruby
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
|