class Capybara::RSpecMatchers::Matchers::HaveCurrentPath

Public Instance Methods

description() click to toggle source
# 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) click to toggle source
# File lib/capybara/rspec/matchers/have_current_path.rb, line 13
def element_does_not_match?(el)
  el.assert_no_current_path(*@args)
end
element_matches?(el) click to toggle source
# File lib/capybara/rspec/matchers/have_current_path.rb, line 9
def element_matches?(el)
  el.assert_current_path(*@args)
end

Private Instance Methods

current_path() click to toggle source
# File lib/capybara/rspec/matchers/have_current_path.rb, line 23
def current_path
  @args.first
end