mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Switch to Pygments.rb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user