Sha256: b789df8a41232c4a168198f48d4a8019d5aadd496e2315ba4f987459f20874c1
Contents?: true
Size: 686 Bytes
Versions: 6
Compression:
Stored size: 686 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 scope = self.respond_to?(:current_scope) ? current_scope : current_node # difference between 2.0 and 2.1 scope.__send__(method, *args, &block) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems