diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pathname/test_pathname.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index b04c7ebdae..46a04ee2b6 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -1288,11 +1288,12 @@ class TestPathname < Test::Unit::TestCase end def test_s_glob_3args + expect = RUBY_VERSION >= "3.1" ? [Pathname("."), Pathname("f")] : [Pathname("."), Pathname(".."), Pathname("f")] with_tmpchdir('rubytest-pathname') {|dir| open("f", "w") {|f| f.write "abc" } Dir.chdir("/") { assert_equal( - [Pathname("."), Pathname("f")], + expect, Pathname.glob("*", File::FNM_DOTMATCH, base: dir).sort) } } |