Method: Webrat::Selenium::Matchers#assert_have_selector

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

#assert_have_selector(expected) ⇒ Object

Asserts that the body of the response contains the supplied selector



44
45
46
47
# File 'lib/webrat/selenium/matchers/have_selector.rb', line 44

def assert_have_selector(expected)
  hs = HaveSelector.new(expected)
  assert hs.matches?(response), hs.failure_message
end