Class: Capybara::RSpecMatchers::HaveCurrentPath
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
196
197
198
|
# File 'lib/capybara/rspec/matchers.rb', line 196
def description
"have current path #{current_path.inspect}"
end
|
#element_does_not_match?(el) ⇒ Boolean
192
193
194
|
# File 'lib/capybara/rspec/matchers.rb', line 192
def element_does_not_match?(el)
el.assert_no_current_path(*@args)
end
|
#element_matches?(el) ⇒ Boolean
188
189
190
|
# File 'lib/capybara/rspec/matchers.rb', line 188
def element_matches?(el)
el.assert_current_path(*@args)
end
|