lib/capybara/screenshot/diff/vcs.rb in capybara-screenshot-diff-1.8.3 vs lib/capybara/screenshot/diff/vcs.rb in capybara-screenshot-diff-1.9.0
- old
+ new
@@ -22,10 +22,10 @@
else
`#{show_command} > #{redirect_target}`
end
if $CHILD_STATUS != 0
- FileUtils.rm_f(checkout_path)
+ checkout_path.delete if checkout_path.exist?
false
else
true
end
end