Sha256: d5f68dd8be5eb113b548abdb534deadf09738b7e9fc7c27d4754af8392a09c82
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module Capybara module Screenshot module Diff module Drivers def self.for(driver_options = {}) driver_option = driver_options.is_a?(Hash) ? driver_options.fetch(:driver, :chunky_png) : driver_options return driver_option unless driver_option.is_a?(Symbol) Utils.find_driver_class_for(driver_option).new end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara-screenshot-diff-1.9.2 | lib/capybara/screenshot/diff/drivers.rb |
capybara-screenshot-diff-1.9.0 | lib/capybara/screenshot/diff/drivers.rb |