diff options
author | murphy <murphy@rubychan.de> | 2009-04-14 01:31:29 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-04-14 01:31:29 +0000 |
commit | 0c370e0c7ae01d2451af53bb777c4ba97f3170d6 (patch) | |
tree | 2f65b1c2d26f73f391f0a2b607c248742505f2fe | |
parent | d57dada25c771c9273241be7df80f35f09985a1a (diff) | |
download | coderay-0c370e0c7ae01d2451af53bb777c4ba97f3170d6.tar.gz |
Using the new :title option in coderay_suite.rb.
-rw-r--r-- | test/scanners/coderay_suite.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb index 9971889..6e6249b 100644 --- a/test/scanners/coderay_suite.rb +++ b/test/scanners/coderay_suite.rb @@ -349,7 +349,8 @@ module CodeRay def highlight_test tokens, name, okay, changed_lines report 'highlighting' do begin - highlighted = Highlighter.encode_tokens tokens, { :highlight_lines => changed_lines } + highlighted = Highlighter.encode_tokens tokens, :highlight_lines => changed_lines, + :title => "Testing #{self.class.name[/\w+$/]}: #{name} [#{'NOT ' unless okay}OKAY]" rescue flunk 'highlighting test failed!' if ENV['assert'] return false |