Module: EscapeHtmlHelpers

Defined in:
lib/decidim/dev/test/rspec_support/html_matchers.rb

Instance Method Summary collapse

Instance Method Details

#escaped_html(string) ⇒ Object



6
7
8
# File 'lib/decidim/dev/test/rspec_support/html_matchers.rb', line 6

def escaped_html(string)
  CGI.escapeHTML(string)
end

#have_escaped_html(string) ⇒ Object



10
11
12
# File 'lib/decidim/dev/test/rspec_support/html_matchers.rb', line 10

def have_escaped_html(string)
  include(escaped_html(string))
end