From 447e095413557330760558c2b0e1d82c3aa685f1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Feb 2021 15:53:44 +0900 Subject: [ruby/pathname] Support Ruby 3.0 Update test/pathname/test_pathname.rb https://github.com/ruby/pathname/commit/29645187e0 https://github.com/ruby/pathname/commit/78584864de Co-authored-by: Nobuyoshi Nakada --- test/pathname/test_pathname.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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) } } -- cgit v1.2.3