Use Charlock all the time for binary detection

This commit is contained in:
Joshua Peek
2011-09-28 09:57:33 -05:00
parent 8a7bd7d073
commit caa39a2bcf
5 changed files with 3 additions and 170 deletions

View File

@@ -59,10 +59,4 @@ class TestPathname < Test::Unit::TestCase
assert_equal 'application/python', Pathname.new("itty.py").mime_type
assert_equal 'text/plain', Pathname.new("defun.kt").mime_type
end
def test_content_type
assert_equal 'text/plain; charset=utf8', Pathname.new("file.txt").content_type
assert_equal 'text/plain; charset=utf8', Pathname.new("file.rb").content_type
assert_equal 'image/png', Pathname.new("octocat.png").content_type
end
end