lib/capybara/screenshot/diff/test_methods.rb in capybara-screenshot-diff-1.5.2 vs lib/capybara/screenshot/diff/test_methods.rb in capybara-screenshot-diff-1.5.3

- old
+ new

@@ -80,10 +80,10 @@ tolerance: Diff.tolerance }.merge(driver_options) # Allow nil or single or multiple areas if driver_options[:skip_area] - driver_options[:skip_area] = driver_options[:skip_area].compact.flatten&.each_cons(4)&.to_a + driver_options[:skip_area] = driver_options[:skip_area].compact.flatten&.each_slice(4)&.to_a end if @screenshot_counter name = "#{format("%02i", @screenshot_counter)}_#{name}" @screenshot_counter += 1