Prefer extension over shebang

This commit is contained in:
Joshua Peek
2011-05-21 17:41:43 -05:00
parent 21ff5e2c1d
commit a69118bd17
3 changed files with 8 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ class TestBlob < Test::Unit::TestCase
assert_equal Language['Ruby'], blob("foo.rb").language
assert_equal Language['Ruby'], blob("script.rb").language
assert_equal Language['Text'], blob("octocat.png").language
assert_equal Language['Ruby'], blob("wrong_shebang.rb").language
end
def test_lexer_name