class Capybara::RSpecMatchers::HaveCurrentPath

Attributes

current_path[R]

Public Class Methods

new(*args) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 149
def initialize(*args)
  @args = args

  # are set just for backwards compatability
  @current_path = args.first
end

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 164
def description
  "have current path #{current_path.inspect}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 160
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 156
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_current_path(*@args) }
end