Sha256: 5208c01f7c5269b15f0d7880728a5bf4b4bbc90a53b08fd815547cdde86a7b5c
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
require 'capybara/session' module Capybara class Session SAVE_SCREENSHOT_METHODS = NODE_METHODS + [ :visit, :has_title?, :has_no_title? ] SAVE_SCREENSHOT_METHODS.each do |method| alias_method "after_hook_#{method}".to_sym, method define_method method do |*args, &block| Gnawrnip.photographer.take_shot send("after_hook_#{method}", *args, &block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems