diff options
author | murphy <murphy@rubychan.de> | 2006-10-18 08:33:33 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-10-18 08:33:33 +0000 |
commit | 4d7ce5f7037580a127ae26d36f49ac5cdf49000d (patch) | |
tree | 5301411f9d019e2fc58858383f941963feaa60de /test/scanners/coderay_suite.rb | |
parent | 2c0a26c2f541fdd74d7af2d814c91d799121f761 (diff) | |
download | coderay-4d7ce5f7037580a127ae26d36f49ac5cdf49000d.tar.gz |
Fixed functional test.
Fixed Ruby scanner (/= was scanned as regexp!)
Made bench.rb run from any folder.
Made scanner test diff function work via EDITOR instead of gvimdiff.
Diffstat (limited to 'test/scanners/coderay_suite.rb')
-rw-r--r-- | test/scanners/coderay_suite.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb index c498f2e..4f415a1 100644 --- a/test/scanners/coderay_suite.rb +++ b/test/scanners/coderay_suite.rb @@ -151,7 +151,9 @@ module CodeRay unless ok File.open(actual_filename, 'wb') { |f| f.write result } if ENV['diff'] - print `gvimdiff #{expected_filename} #{actual_filename}` + diff = expected_filename.sub(/\.expected\..*/, '.diff') + system "diff #{expected_filename} #{actual_filename} > #{diff}" + system "EDITOR #{diff}" end end unless ENV['diff'] or ENV['noassert'] |