Method: Webrat::Selenium::Matchers#assert_not_contain
- Defined in:
- lib/webrat/selenium/matchers/have_content.rb
#assert_not_contain(content) ⇒ Object
Asserts that the body of the response does not contain the supplied string or regepx
72 73 74 75 |
# File 'lib/webrat/selenium/matchers/have_content.rb', line 72 def assert_not_contain(content) hc = HasContent.new(content) assert !hc.matches?(response), hc. end |