class Rails::Dom::Testing::Assertions::SelectorAssertions::SubstitutionContext

def matcher_for(value, format_for_presentation)

def matcher_for(value, format_for_presentation)
  # Nokogiri doesn't like arbitrary values without quotes, hence inspect.
  if format_for_presentation
    value.inspect # Avoid to_s so Regexps aren't put in quotes.
  elsif value.is_a?(Regexp)
    "\"#{value}\""
  else
    value.to_s.inspect
  end
end