summaryrefslogtreecommitdiff
path: root/test/pathname/test_pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r--test/pathname/test_pathname.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 8e6681232b..076a73e50b 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -1251,6 +1251,17 @@ class TestPathname < Test::Unit::TestCase
}
end
+ def test_s_glob_3args
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ Dir.chdir("/") {
+ assert_equal(
+ [Pathname("."), Pathname(".."), Pathname("f")],
+ Pathname.glob("*", File::FNM_DOTMATCH, base: dir).sort)
+ }
+ }
+ end
+
def test_s_getwd
wd = Pathname.getwd
assert_kind_of(Pathname, wd)