summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-20 12:02:03 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-20 12:02:03 +0000
commit7bf10e8787912565c53bb774e7508c2955515326 (patch)
treefed1cd9ed8ce952b58f3dffa735d3d5be4200299 /test/ruby
parentc0dba956d1bd798d2ce614dbc8573ab10bb44990 (diff)
* test/ruby/test_dir.rb: added testcase of double slash path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_dir.rb1
1 files changed, 1 insertions, 0 deletions
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) },