summaryrefslogtreecommitdiff
path: root/test/scanners/coderay_suite.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanners/coderay_suite.rb')
-rw-r--r--test/scanners/coderay_suite.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb
index 280e182..6a2725c 100644
--- a/test/scanners/coderay_suite.rb
+++ b/test/scanners/coderay_suite.rb
@@ -152,11 +152,11 @@ module CodeRay
File.open(actual_filename, 'wb') { |f| f.write result }
if ENV['diff']
diff = expected_filename.sub(/\.expected\..*/, '.debug.diff')
- system "diff #{expected_filename} #{actual_filename} > #{diff}"
- system "EDITOR #{diff}"
+ system "diff --text #{expected_filename} #{actual_filename} > #{diff}"
+ system "EDITOR #{diff}" if ENV['diffed']
end
end
- unless ENV['diff'] or ENV['noassert']
+ unless ENV['noassert']
assert(ok, "Scan error: unexpected output")
end
else