Sha256: 9a4ad7b7683c2dd72673eab8a3478a428d0880edb997fd4cea136129aee1ef6a

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

#
# Currently not in use.
# Should go in its own file, too.
#
module DefaultRspecToBrowser
  # rubocop:disable Style/MethodMissingSuper
  def method_missing(method, *args, &block)
    if args.empty?
      browser.send(method)
    else
      browser.send(method, *args, &block)
    end
  rescue ArgumentError
    browser.send(method)
  end
  # rubocop:enable Style/MethodMissingSuper

  def respond_to_missing?(method, _include_private = false)
    return false if method =~ /browser/
    browser.respond_to?(method)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rutl-0.6.0 lib/rspec/default_rspec_to_browser.rb
rutl-0.5.0 lib/rspec/default_rspec_to_browser.rb
rutl-0.4.0 lib/rspec/default_rspec_to_browser.rb
rutl-0.3.0 lib/rspec/default_rspec_to_browser.rb
rutl-0.2.1 lib/rspec/default_rspec_to_browser.rb
rutl-0.2.0 lib/rspec/default_rspec_to_browser.rb