class RSpecHtmlMatchers::NokogiriTextHelper
@private
@api
def content node_set
def content node_set node_set.find_all do |node| actual_content = node.content.gsub(NON_BREAKING_SPACE, ' ') actual_content = node.content.strip.squeeze(' ') if @squeeze_text actual_content == @text end end
def initialize text, squeeze_text = false
def initialize text, squeeze_text = false @text = text @squeeze_text = squeeze_text end