Method: Webrat::Selenium::Matchers#assert_have_tag
- Defined in:
- lib/webrat/selenium/matchers/have_tag.rb
#assert_have_tag(name, attributes = {}) ⇒ Object
Asserts that the body of the response contains the supplied tag with the associated selectors
58 59 60 61 |
# File 'lib/webrat/selenium/matchers/have_tag.rb', line 58 def assert_have_tag(name, attributes = {}) ht = HaveTag.new([name, attributes]) assert ht.matches?(response), ht. end |