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

Version Path
isomorfeus-puppetmaster-0.5.7 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.6 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.5 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.4 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.3 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.2 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.1 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.5.0 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.4.1 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.4.0 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/rspec/matchers/have_current_path.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.5 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.4 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.3 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.2 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.1 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb
capybara-3.30.0 lib/capybara/rspec/matchers/have_current_path.rb
tdiary-5.1.0 vendor/bundle/gems/capybara-3.29.0/lib/capybara/rspec/matchers/have_current_path.rb
isomorfeus-puppetmaster-0.3.0 lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb