Welcome to mirror list, hosted at ThFree Co, Russian Federation.

email_matchers.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9d59ec12ec20583acb4535f69004feb3b586b30 (plain)
1
2
3
4
5
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