lib/compaa/generated_image.rb in compaa-0.0.3 vs lib/compaa/generated_image.rb in compaa-0.0.4

- old
+ new

@@ -20,9 +20,15 @@ def reference_path path.gsub 'screenshots_generated_this_run', 'reference_screenshots' end + def delete_difference_image + difference_image_path = path.gsub 'screenshots_generated_this_run', 'differences_in_screenshots_this_run' + difference_image_path << '_difference.gif' + file_manager.rm difference_image_path + end + private def copy_and_create_directory dest file_manager.mkdir_p File.dirname dest file_manager.cp path, dest