lib/capybara/screenshot/diff/image_compare.rb in capybara-screenshot-diff-1.4.0 vs lib/capybara/screenshot/diff/image_compare.rb in capybara-screenshot-diff-1.4.1

- old
+ new

@@ -125,13 +125,13 @@ def annotate_and_save(images, region = difference_region) annotated_images = driver.draw_rectangles(images, region, DIFF_COLOR) @skip_area.to_a.flatten.each_slice(4) do |region| annotated_images = driver.draw_rectangles(annotated_images, region, SKIP_COLOR) end - save(*annotated_images, @annotated_new_file_name, @annotated_old_file_name) + save(*annotated_images, @annotated_old_file_name, @annotated_new_file_name) end - def save(new_img, old_img, annotated_new_file_name, annotated_old_file_name) + def save(old_img, new_img, annotated_old_file_name, annotated_new_file_name) driver.save_image_to(old_img, annotated_old_file_name) driver.save_image_to(new_img, annotated_new_file_name) end def old_file_exists?