Add tests for new exclude behaviour.

This commit is contained in:
Parker Moore
2014-01-05 11:01:51 -08:00
parent 35868807c1
commit 366f9268ee
2 changed files with 8 additions and 2 deletions

View File

@@ -83,6 +83,12 @@ class TestCoreExt < Test::Unit::TestCase
assert data.glob_include?("c/a/a.txt")
assert data.glob_include?("c/a/b/a.txt")
end
should "match even if there is no leading slash" do
data = ['vendor/bundle']
assert data.glob_include?('/vendor/bundle')
assert data.glob_include?('vendor/bundle')
end
end
end
end