class Capybara::RSpecMatchers::HaveCurrentPath

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 180
def description
  "have current path #{current_path.inspect}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 176
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 172
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 186
def current_path
  @args.first
end