From 285c9b4c60e76e41efce9db79f5e32344c54305a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 9 May 2012 10:59:00 -0500 Subject: [PATCH] Fix xslt mime type --- lib/linguist/mimes.yml | 1 + test/fixtures/test.xslt | 25 +++++++++++++++++++++++++ test/test_blob.rb | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 test/fixtures/test.xslt diff --git a/lib/linguist/mimes.yml b/lib/linguist/mimes.yml index 198a7530..1b2ce0a5 100644 --- a/lib/linguist/mimes.yml +++ b/lib/linguist/mimes.yml @@ -50,6 +50,7 @@ application/x-supercollider @sc :8bit application/x-troff-ms :8bit application/x-wais-source :8bit application/xaml+xml @xaml :8bit +application/xslt+xml @xslt :8bit image/x-icns @icns text/cache-manifest @manifest text/plain @cu,cxx diff --git a/test/fixtures/test.xslt b/test/fixtures/test.xslt new file mode 100644 index 00000000..234a0793 --- /dev/null +++ b/test/fixtures/test.xslt @@ -0,0 +1,25 @@ + + + + + + + +

My CD Collection

+ + + + + + + + + + + +
TitleArtist
+ + +
+ +
diff --git a/test/test_blob.rb b/test/test_blob.rb index 59c02571..f99865e5 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -441,6 +441,9 @@ class TestBlob < Test::Unit::TestCase # Arch Linux PKGBUILD assert_equal Language['Shell'], blob("PKGBUILD").language + + # XML + assert_equal Language['XSLT'], blob("test.xslt").language end def test_lexer