lib/capybara/screenshot/diff.rb in capybara-screenshot-diff-0.1.0 vs lib/capybara/screenshot/diff.rb in capybara-screenshot-diff-0.2.1
- old
+ new
@@ -2,13 +2,19 @@
require 'capybara/screenshot/diff/image_compare'
require 'capybara/screenshot/diff/capybara_setup'
module Capybara
module Screenshot
- mattr_accessor :enabled
- mattr_accessor :window_size
mattr_accessor :add_driver_path
mattr_accessor :add_os_path
+ mattr_accessor :enabled
+ mattr_accessor :screenshot_root
+ mattr_accessor :stability_time_limit
+ mattr_accessor :window_size
+
+ def self.active?
+ enabled || (enabled.nil? && Diff.enabled)
+ end
# Module to track screen shot changes
module Diff
mattr_accessor :enabled
self.enabled = true