Sha256: 6e00ba9150332aa3c06e0729ff1f7d89018e99b6acfc344c82f79ea66f77ad98
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require "capybara" require "capybara/screenshot_config/version" require "capybara/screenshot_config/configuration" module Capybara module ScreenshotConfig class << self def configure yield(configuration) end def configuration @configuration ||= Configuration.new end end end module SaveScreenshotPatch def save_screenshot(path, options={}) options = ScreenshotConfig.configuration.options.merge(options) super("#{ScreenshotConfig.configuration.save_dir}/#{path}", options) end end class Session prepend SaveScreenshotPatch end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara-screenshot_config-0.3.0 | lib/capybara/screenshot_config.rb |
capybara-screenshot_config-0.2.0 | lib/capybara/screenshot_config.rb |