class Capybara::RSpecMatchers::HaveCurrentPath

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 179
def description
  "have current path #{current_path.inspect}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 175
def does_not_match?(actual)
  wrap_does_not_match?(actual) { |el| el.assert_no_current_path(*@args) }
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 171
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_current_path(*@args) }
end

Private Instance Methods

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