Sha256: 6df572b30f52197be27eca8575601a286bfdd244010db455fa2649b3100ddd0f

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

require "capybara"
require "wildcard_matchers"

module WildcardFinders
  autoload :Finders,  "wildcard_finders/finders"
  autoload :Matchers, "wildcard_finders/matchers"
end

module Capybara
  module Node
    class Base
      include ::WildcardFinders::Finders, ::WildcardFinders::Matchers
    end
  end

  class Session
    [ ::WildcardFinders::Finders::METHODS, ::WildcardFinders::Matchers::METHODS ].flatten.each do |method|
      define_method(method) do |*args, &block|
        @touched = true
        current_node.__send__(method, *args, &block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wildcard_finders-0.0.2 lib/wildcard_finders.rb
wildcard_finders-0.0.1 lib/wildcard_finders.rb