lib/capybara/screenshot/diff.rb in capybara-screenshot-diff-0.10.1 vs lib/capybara/screenshot/diff.rb in capybara-screenshot-diff-0.10.2
- old
+ new
@@ -19,10 +19,10 @@
enabled || (enabled.nil? && Diff.enabled)
end
def screenshot_area
parts = ['doc/screenshots']
- parts << Capybara.default_driver.to_s if Capybara::Screenshot.add_driver_path
+ parts << Capybara.current_driver.to_s if Capybara::Screenshot.add_driver_path
parts << os_name if Capybara::Screenshot.add_os_path
File.join parts
end
def screenshot_area_abs