Add PDF detection

This commit is contained in:
Garen Torikian
2013-03-25 15:45:58 -07:00
parent 009bff6cc2
commit 4148ff1c29
2 changed files with 11 additions and 0 deletions

View File

@@ -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?