123456789_123456789_123456789_123456789_123456789_

Class: Capybara::RSpecMatchers::Matchers::HaveCurrentPath

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, WrappedElementMatcher, Base, Compound, RSpec::Matchers::Composable
Inherits: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
Defined in: lib/capybara/rspec/matchers/have_current_path.rb

Class Method Summary

Base - Inherited

Instance Attribute Summary

Instance Method Summary

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

[ GitHub ]

  
# 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

[ GitHub ]

  
# 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