test for lexer case insensitivity

This commit is contained in:
Ben Balter 2013-10-06 16:06:20 -04:00
parent 844cc615e4
commit 9b0a7b3438
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ CONTENT
tag = Jekyll::Tags::HighlightBlock.new('highlight', 'ruby linenos=table cssclass=hl', ["test", "{% endhighlight %}", "\n"])
assert_equal({ 'cssclass' => 'hl', 'linenos' => 'table' }, tag.instance_variable_get(:@options))
tag = Jekyll::Tags::HighlightBlock.new('highlight', 'Ruby ', ["test", "{% endhighlight %}", "\n"])
assert_equal "ruby", tag.instance_variable_get(:@lang), "lexers should be case insensitive"
end
end