Class: Capybara::RSpecMatchers::Matchers::HaveCurrentPath
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
WrappedElementMatcher,
Base
|
|
|
Instance Chain:
|
|
| Inherits: |
Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
|
| Defined in: | lib/capybara/rspec/matchers/have_current_path.rb |
Class Method Summary
Instance Attribute Summary
Base - Inherited
Instance Method Summary
- #description
- #element_does_not_match?(el) ⇒ Boolean
- #element_matches?(el) ⇒ Boolean
- #current_path private
WrappedElementMatcher - Inherited
Base - Inherited
Compound - Included
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base
Instance Method Details
#current_path (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_current_path.rb', line 23
def current_path @args.first end
#description
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_current_path.rb', line 17
def description "have current path #{current_path.inspect}" end
#element_does_not_match?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_current_path.rb', line 13
def element_does_not_match?(el) el.assert_no_current_path(current_path, **@kw_args, &@filter_block) end
#element_matches?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_current_path.rb', line 9
def element_matches?(el) el.assert_current_path(current_path, **@kw_args, &@filter_block) end