Class: Capybara::RSpecMatchers::HaveText
Instance Attribute Summary
Attributes inherited from Matcher
#failure_message, #failure_message_when_negated
Instance Method Summary
collapse
#does_not_match?, #matches?
Methods inherited from Matcher
#initialize, #wrap
Methods included from Compound
#and, #and_then, #or
Instance Method Details
#description ⇒ Object
152
153
154
|
# File 'lib/capybara/rspec/matchers.rb', line 152
def description
"text #{format(text)}"
end
|
#element_does_not_match?(el) ⇒ Boolean
148
149
150
|
# File 'lib/capybara/rspec/matchers.rb', line 148
def element_does_not_match?(el)
el.assert_no_text(*@args)
end
|
#element_matches?(el) ⇒ Boolean
144
145
146
|
# File 'lib/capybara/rspec/matchers.rb', line 144
def element_matches?(el)
el.assert_text(*@args)
end
|
156
157
158
|
# File 'lib/capybara/rspec/matchers.rb', line 156
def format(content)
content.inspect
end
|