Sha256: ac1517707799f73d89483333afc4dc6ab0a2552b5a75e5398f6c3a3faa90f111

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module Screenshot
    module Diff
      module Drivers
        def self.for(driver_options = {})
          driver_option = driver_options.fetch(:driver, :chunky_png)
          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

4 entries across 4 versions & 1 rubygems

Version Path
capybara-screenshot-diff-1.8.3 lib/capybara/screenshot/diff/drivers.rb
capybara-screenshot-diff-1.8.2 lib/capybara/screenshot/diff/drivers.rb
capybara-screenshot-diff-1.8.1 lib/capybara/screenshot/diff/drivers.rb
capybara-screenshot-diff-1.8.0 lib/capybara/screenshot/diff/drivers.rb