class Capybara::RSpecMatchers::HaveCurrentPath
Public Class Methods
new(*args)
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 183 def initialize(*args) @args = args @current_path = args.first end
Public Instance Methods
description()
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 196 def description "have current path #{@current_path.inspect}" end
does_not_match?(actual)
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 192 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 188 def matches?(actual) wrap_matches?(actual) { |el| el.assert_current_path(*@args) } end