Method: Webrat::Selenium::Matchers#assert_contain

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

#assert_contain(content) ⇒ Object

Asserts that the body of the response contain the supplied string or regexp



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

def assert_contain(content)
  hc = HasContent.new(content)
  assert hc.matches?(response), hc.failure_message
end