Method: Webrat::Selenium::Matchers#assert_have_no_selector

Defined in:
lib/webrat/selenium/matchers/have_selector.rb

#assert_have_no_selector(expected) ⇒ Object

Asserts that the body of the response does not contain the supplied string or regepx



51
52
53
54
# File 'lib/webrat/selenium/matchers/have_selector.rb', line 51

def assert_have_no_selector(expected)
  hs = HaveSelector.new(expected)
  assert !hs.matches?(response), hs.negative_failure_message
end