Switch to Pygments.rb

This commit is contained in:
Joshua Peek
2011-08-22 10:55:39 -05:00
parent e70ffb93ba
commit bb11317546
5 changed files with 36 additions and 52 deletions

View File

@@ -380,21 +380,19 @@ class TestBlob < Test::Unit::TestCase
assert_equal nil, blob("foo.rb").shebang_language
end
if Lexer.has_pygments?
def test_colorize
assert_equal <<-HTML, blob("foo.rb").colorize
def test_colorize
assert_equal <<-HTML, blob("foo.rb").colorize
<div class="highlight"><pre><span class="k">module</span> <span class="nn">Foo</span>
<span class="k">end</span>
</pre>
</div>
HTML
end
HTML
end
def test_colorize_without_wrapper
assert_equal <<-HTML, blob("foo.rb").colorize_without_wrapper
def test_colorize_without_wrapper
assert_equal <<-HTML, blob("foo.rb").colorize_without_wrapper
<span class="k">module</span> <span class="nn">Foo</span>
<span class="k">end</span>
HTML
end
HTML
end
end