From 7dc0511ea4be210f82abb1c82a31aec3a4fe5736 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 12 Jan 2021 18:17:02 +0900 Subject: Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280] Co-authored-by: Jeremy Evans --- test/pathname/test_pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pathname/test_pathname.rb') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 43cef4849f..2c07f77511 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -1266,7 +1266,7 @@ class TestPathname < Test::Unit::TestCase open("f", "w") {|f| f.write "abc" } Dir.chdir("/") { assert_equal( - [Pathname("."), Pathname(".."), Pathname("f")], + [Pathname("."), Pathname("f")], Pathname.glob("*", File::FNM_DOTMATCH, base: dir).sort) } } -- cgit v1.2.3