summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-12 18:17:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-12 20:02:43 +0900
commit7dc0511ea4be210f82abb1c82a31aec3a4fe5736 (patch)
tree641de37d2e24fe9c7ba3d30536a7c9b0886537e5 /test/pathname
parentccabf4966f4c5a7e19fec52b690d07bf471fc5d1 (diff)
Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280]
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4052
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb2
1 files changed, 1 insertions, 1 deletions
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)
}
}