Class: Webrat::Selenium::Matchers::HaveTag
- Inherits:
-
HaveSelector
- Object
- HaveSelector
- Webrat::Selenium::Matchers::HaveTag
- Defined in:
- lib/webrat/selenium/matchers/have_tag.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#failure_message ⇒ Object
Returns String:: The failure message.
-
#negative_failure_message ⇒ Object
Returns String:: The failure message to be displayed in negative matches.
- #selector ⇒ Object
Methods inherited from HaveSelector
Constructor Details
This class inherits a constructor from Webrat::Selenium::Matchers::HaveSelector
Instance Method Details
#failure_message ⇒ Object
Returns
- String
-
The failure message.
8 9 10 |
# File 'lib/webrat/selenium/matchers/have_tag.rb', line 8 def "expected following output to contain a #{tag_inspect} tag:\n#{@document}" end |
#negative_failure_message ⇒ Object
Returns
- String
-
The failure message to be displayed in negative matches.
14 15 16 |
# File 'lib/webrat/selenium/matchers/have_tag.rb', line 14 def "expected following output to omit a #{tag_inspect}:\n#{@document}" end |
#selector ⇒ Object
19 20 21 22 23 24 |
# File 'lib/webrat/selenium/matchers/have_tag.rb', line 19 def selector attribute_selector=super @options.each do |key, value| attribute_selector << "[#{key}='#{value}']" end end |