diff options
author | murphy <murphy@rubychan.de> | 2011-07-04 00:38:27 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-07-04 00:38:27 +0000 |
commit | 6a52b213edf1f146fb72a055466a35fe219e5a0d (patch) | |
tree | 2f0b49ff6ecbce2b24fc56d7eb9a2a883136bc5a /test/executable | |
parent | 498df2b7654c210c8f47e2757efc33cd94689b57 (diff) | |
download | coderay-6a52b213edf1f146fb72a055466a35fe219e5a0d.tar.gz |
cleanups: Page encoder is default for HTML, benchmark KB/s instead of tokens/s
Diffstat (limited to 'test/executable')
-rw-r--r-- | test/executable/suite.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/executable/suite.rb b/test/executable/suite.rb index ef2ebb3..37acab9 100644 --- a/test/executable/suite.rb +++ b/test/executable/suite.rb @@ -1,4 +1,5 @@ require 'test/unit' +require 'rubygems' unless defined? Gem require 'shoulda-context' require 'pathname' @@ -100,7 +101,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{<pre [^>]*>(.*?)</pre>}m + pre = %r{<td class="code"><pre>(.*?)</pre>}m tag = /<[^>]*>/ should 'not throw an error' do @@ -155,7 +156,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{<pre [^>]*>(.*?)</pre>}m + pre = %r{<td class="code"><pre>(.*?)</pre>}m tag_class = /<span class="([^>"]*)"?[^>]*>/ should 'respect the file extension and highlight the input as Python' do @@ -170,7 +171,7 @@ class TestCodeRayExecutable < Test::Unit::TestCase source = File.read source_file - pre = %r{<pre [^>]*>(.*?)</pre>}m + pre = %r{<td class="code"><pre>(.*?)</pre>}m tag_class = /<span class="([^>"]*)"?[^>]*>/ should 'ignore the file extension and highlight the input as Ruby' do |