mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add PDF detection
This commit is contained in:
@@ -137,6 +137,10 @@ class TestBlob < Test::Unit::TestCase
|
||||
assert blob("Text/cube.stl").solid?
|
||||
end
|
||||
|
||||
def test_pdf
|
||||
assert blob("Binary/foo.pdf").pdf?
|
||||
end
|
||||
|
||||
def test_viewable
|
||||
assert blob("Text/README").viewable?
|
||||
assert blob("Ruby/foo.rb").viewable?
|
||||
|
||||
Reference in New Issue
Block a user