lib/kelp/visibility.rb
def page_should_contain_regexp(regexp)
      warn "WARNING: page_should_contain_regexp is deprecated. Use should_see instead."
      if !page.has_xpath?('.//*', :text => regexp)
        raise Kelp::Unexpected
      end
    end
# Ensure that the current page content matches a Regexp.
#
# @deprecated
#   Use {#should_see} instead
#
# @param [Regexp] regexp
#   Content you expect to match
#
Ensure that the current page content matches a Regexp.
Ensure that the current page content matches a Regexp .
def page_should_contain_regexp(regexp)
      warn "WARNING: page_should_contain_regexp is deprecated. Use should_see instead."
      if !page.has_xpath?('.//*', :text => regexp)
        raise Kelp::Unexpected
      end
    end
def page_should_contain_regexp ( regexp ) warn "WARNING: page_should_contain_regexp is deprecated. Use should_see instead." if ! page . has_xpath? ( './/*' , :text => regexp ) raise Kelp :: Unexpected end end
Ensure that the current page content matches a Regexp.
Ensure that the current page content matches a Regexp .
regexp
regexp Content you expect to match
regexp Content you expect to match
deprecated
Use {#should_see} instead
Use { #should_see } instead