Sha256: 720d834ba841157018ae30a0b042940bce8821a1e916122a87ae52ecf6530d39
Contents?: true
Size: 559 Bytes
Versions: 64
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true require 'capybara/rspec/matchers/base' module Capybara module RSpecMatchers module Matchers class HaveCurrentPath < WrappedElementMatcher def element_matches?(el) el.assert_current_path(*@args) end def element_does_not_match?(el) el.assert_no_current_path(*@args) end def description "have current path #{current_path.inspect}" end private def current_path @args.first end end end end end
Version data entries
64 entries across 64 versions & 4 rubygems