mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Use .html files in some #documentation? tests
This is what we were trying to classify in the twbs/bootstrap repository, for example.
This commit is contained in:
@@ -442,10 +442,10 @@ class TestBlob < Minitest::Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_documentation
|
def test_documentation
|
||||||
assert_predicate fixture_blob("doc/foo.md"), :documentation?
|
assert_predicate fixture_blob("doc/foo.html"), :documentation?
|
||||||
assert_predicate fixture_blob("docs/foo.md"), :documentation?
|
assert_predicate fixture_blob("docs/foo.html"), :documentation?
|
||||||
refute_predicate fixture_blob("project/doc/foo.md"), :documentation?
|
refute_predicate fixture_blob("project/doc/foo.html"), :documentation?
|
||||||
refute_predicate fixture_blob("project/docs/foo.md"), :documentation?
|
refute_predicate fixture_blob("project/docs/foo.html"), :documentation?
|
||||||
|
|
||||||
assert_predicate fixture_blob("Documentation/foo.md"), :documentation?
|
assert_predicate fixture_blob("Documentation/foo.md"), :documentation?
|
||||||
refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation?
|
refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation?
|
||||||
|
|||||||
Reference in New Issue
Block a user