mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Unused test
This commit is contained in:
@@ -8,8 +8,6 @@ require 'mime/types'
|
|||||||
class TestBlob < Test::Unit::TestCase
|
class TestBlob < Test::Unit::TestCase
|
||||||
include Linguist
|
include Linguist
|
||||||
|
|
||||||
Lexer = Pygments::Lexer
|
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
# git blobs are normally loaded as ASCII-8BIT since they may contain data
|
# git blobs are normally loaded as ASCII-8BIT since they may contain data
|
||||||
# with arbitrary encoding not known ahead of time
|
# with arbitrary encoding not known ahead of time
|
||||||
@@ -468,10 +466,6 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_lexer
|
|
||||||
assert_equal Lexer['Ruby'], blob("Ruby/foo.rb").lexer
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_minified_files_not_safe_to_highlight
|
def test_minified_files_not_safe_to_highlight
|
||||||
assert !blob("JavaScript/jquery-1.6.1.min.js").safe_to_colorize?
|
assert !blob("JavaScript/jquery-1.6.1.min.js").safe_to_colorize?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user