Sha256: 4e01e99e7418d1f3bbe4947cf7ad01dcae3680c0927a74c700913897254950fb

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

require 'capybara/session'

module Capybara
  class Session
    SAVE_SCREENSHOT_METHODS = [
      :attach_file, :check, :choose, :click_link_or_button, :click_button,
      :click_link, :fill_in, :select, :uncheck, :unselect, :click_on,
      :evaluate_script, :visit
    ]

    # SAVE_SCREENSHOT_METHODS.each do |method|
    #   alias_method "after_hook_#{method}".to_sym, method
    #
    #   define_method method do |*args, &block|
    #     send("after_hook_#{method}", *args, &block)
    #     Gnawrnip::Animation.add_frame
    #   end
    # end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gnawrnip-0.0.4 lib/gnawrnip/ext/capybara/session.rb
gnawrnip-0.0.3 lib/gnawrnip/ext/capybara/session.rb