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