Skip to content

Commit

Permalink
Regression test for fix in 430d6ce
Browse files Browse the repository at this point in the history
  • Loading branch information
markashleybell committed Sep 1, 2020
1 parent df67549 commit a8cc8e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MAB.DotIgnore.Test/IgnoreListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ public void Ignored_Directory_Ignores_All_Children()
Assert.IsFalse(list.IsIgnored("notignored/one/two/test.txt", false));
}

[Test]
public void Handle_Non_Relative_Path()
{
var list = new IgnoreList(new string[] { "ignored/" });

Assert.IsTrue(list.IsIgnored("/ignored/test/test.txt", false));
}

[TearDown]
public void TearDown()
{
Expand Down

0 comments on commit a8cc8e9

Please sign in to comment.