Replace Lexer with Pygments::Lexer

This commit is contained in:
Joshua Peek
2011-08-23 12:41:06 -05:00
parent bb11317546
commit 0864b9847f
12 changed files with 33 additions and 1995 deletions

View File

@@ -1,10 +1,13 @@
require 'linguist/pathname'
require 'test/unit'
require 'pygments'
class TestPathname < Test::Unit::TestCase
include Linguist
Lexer = Pygments::Lexer
def test_to_s
assert_equal "file.rb", Pathname.new("file.rb").to_s
end