summaryrefslogtreecommitdiff
path: root/test/ruby/test_dir_m17n.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-24 03:32:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-24 03:32:55 +0000
commit989a6cb176522792198344fd041425e5891b2510 (patch)
tree598787e0a22c904d3f5478795a81f3ba8c9da135 /test/ruby/test_dir_m17n.rb
parent3a4a494e024d010fb41e20d54d278ce37532db19 (diff)
* test/ruby/test_dir_m17n.rb: sorry, typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir_m17n.rb')
-rw-r--r--test/ruby/test_dir_m17n.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb
index d9ff711435..1644a6de65 100644
--- a/test/ruby/test_dir_m17n.rb
+++ b/test/ruby/test_dir_m17n.rb
@@ -201,7 +201,7 @@ class TestDir_M17N < Test::Unit::TestCase
ents = Dir.entries(".", opts)
p ents
result = ents.include?(filename) ||
- (/darwin/ =~ RUBY_PLATFORM =~ /darwin/ && ents.include?("%A4%A2".force_encoding("ASCII-8BIT"))) ||
+ (/darwin/ =~ RUBY_PLATFORM && ents.include?("%A4%A2".force_encoding("ASCII-8BIT"))) ||
(/mswin|mingw/ =~ RUBY_PLATFORM && ents.include?(win_expected_filename.force_encoding("ASCII-8BIT")))
if !result && /mswin|mingw/ =~ RUBY_PLATFORM
exit Dir.entries(".", {:encoding => Encoding.find("filesystem")}).include?(win_expected_filename)