Method: Webrat::Selenium::Matchers#assert_have_no_tag

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

#assert_have_no_tag(name, attributes = {}) ⇒ Object

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



65
66
67
68
# File 'lib/webrat/selenium/matchers/have_tag.rb', line 65

def assert_have_no_tag(name, attributes = {})
  ht = HaveTag.new([name, attributes])
  assert !ht.matches?(response), ht.negative_failure_message
end