mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Categorize INSTALL files as documentation too
This commit is contained in:
@@ -14,5 +14,6 @@
|
|||||||
|
|
||||||
- (^|/)CONTRIBUTING(\.|$)
|
- (^|/)CONTRIBUTING(\.|$)
|
||||||
- (^|/)COPYING(\.|$)
|
- (^|/)COPYING(\.|$)
|
||||||
|
- (^|/)INSTALL(\.|$)
|
||||||
- (^|/)LICEN[CS]E(\.|$)
|
- (^|/)LICEN[CS]E(\.|$)
|
||||||
- (^|/)README(\.|$)
|
- (^|/)README(\.|$)
|
||||||
|
|||||||
@@ -470,6 +470,11 @@ class TestBlob < Minitest::Test
|
|||||||
assert_predicate fixture_blob("COPYING.txt"), :documentation?
|
assert_predicate fixture_blob("COPYING.txt"), :documentation?
|
||||||
assert_predicate fixture_blob("foo/COPYING"), :documentation?
|
assert_predicate fixture_blob("foo/COPYING"), :documentation?
|
||||||
|
|
||||||
|
assert_predicate fixture_blob("INSTALL"), :documentation?
|
||||||
|
assert_predicate fixture_blob("INSTALL.md"), :documentation?
|
||||||
|
assert_predicate fixture_blob("INSTALL.txt"), :documentation?
|
||||||
|
assert_predicate fixture_blob("foo/INSTALL"), :documentation?
|
||||||
|
|
||||||
refute_predicate fixture_blob("foo.md"), :documentation?
|
refute_predicate fixture_blob("foo.md"), :documentation?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user