lib/capybara/screenshot/diff/capybara_setup.rb in capybara-screenshot-diff-0.3.0 vs lib/capybara/screenshot/diff/capybara_setup.rb in capybara-screenshot-diff-0.4.0

- old
+ new

@@ -128,10 +128,10 @@ committed_file_name = "#{wc_root}/.svn/pristine/#{checksum[0..1]}/#{checksum}.svn-base" end else committed_file_name = org_name redirect_target = "#{committed_file_name} #{SILENCE_ERRORS}" - `git show HEAD~0:#{self.class.screenshot_area}/#{name}.png > #{redirect_target}` + `git show HEAD~0:./#{self.class.screenshot_area}/#{name}.png > #{redirect_target}` if File.size(committed_file_name) == 0 FileUtils.rm_f committed_file_name end end end