Method: RSpecHtmlMatchers#have_tag
- Defined in:
- lib/rspec-html-matchers.rb
#have_tag(tag, options = {}) { ... } ⇒ Object
tag assertion, this is the core of functionality, other matchers are shortcuts to this matcher
62 63 64 65 66 |
# File 'lib/rspec-html-matchers.rb', line 62 def have_tag tag, = {}, &block # for backwards compatibility with rpecs have tag: = { :text => } if .is_a?(String) || .is_a?(Regexp) @__current_scope_for_nokogiri_matcher = HaveTag.new(tag, , &block) end |