diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_dir.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue May 20 20:57:34 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> + + * test/ruby/test_dir.rb (test_glob): added testcase of double + slash path. + Tue May 20 04:58:54 2014 Tanaka Akira <akr@fsij.org> * ext/socket/extconf.rb: Don't check fields of struct tcp_info if the diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 3f2acb22fc..4ce3944cfc 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -139,6 +139,7 @@ class TestDir < Test::Unit::TestCase assert_equal((?a..?z).step(2).map {|f| File.join(File.join(@root, f), "") }.sort, Dir.glob(File.join(@root, "*/")).sort) + assert_equal([File.join(@root, '//a')], Dir.glob(@root + '//a')) FileUtils.touch(File.join(@root, "{}")) assert_equal(%w({} a).map{|f| File.join(@root, f) }, |