Method: Webrat::Matchers#assert_have_xpath

Defined in:
lib/webrat/core/matchers/have_xpath.rb

#assert_have_xpath(expected, options = {}, &block) ⇒ Object



113
114
115
116
# File 'lib/webrat/core/matchers/have_xpath.rb', line 113

def assert_have_xpath(expected, options = {}, &block)
  hs = HaveXpath.new(expected, options, &block)
  assert hs.matches?(response_body), hs.failure_message
end