mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Add tests for new exclude behaviour.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user