summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index c34d61f408..318e06b640 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -788,6 +788,8 @@ class TestPathname < Test::Unit::TestCase
path = Pathname("a")
assert_equal(true, path.fnmatch("*"))
assert_equal(false, path.fnmatch("*.*"))
+ assert_equal(false, Pathname(".foo").fnmatch("*"))
+ assert_equal(true, Pathname(".foo").fnmatch("*", File::FNM_DOTMATCH))
end
def test_fnmatch?