lib/capybara/screenshot/diff/drivers/vips_driver.rb in capybara-screenshot-diff-1.4.2 vs lib/capybara/screenshot/diff/drivers/vips_driver.rb in capybara-screenshot-diff-1.5.0
- old
+ new
@@ -80,10 +80,10 @@
def chunky_png_comparator
@chunky_png_comparator ||= ImageCompare.new(
@new_file_name,
@old_file_name,
- @options.merge(driver: :chunky_png, tolerance: nil, median_filter_window_size: nil)
+ **@options.merge(driver: :chunky_png, tolerance: nil, median_filter_window_size: nil)
)
end
def difference_level(diff_mask, old_img, _region = nil)
VipsUtil.difference_area_size_by(diff_mask).to_f / image_area_size(old_img)