fix silly test bug

git-svn-id: file:///home/svn/framework3/trunk@10648 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-10-12 00:27:35 +00:00
parent 7b576be821
commit 026d411660
1 changed files with 5 additions and 1 deletions

View File

@ -466,7 +466,11 @@ class ZipFsFileNonmutatingTest < Test::Unit::TestCase
end
def test_popen
cmd = /mswin/i =~ RUBY_PLATFORM ? 'dir' : 'ls'
if RUBY_PLATFORM =~ /mswin|mingw/i
cmd = 'dir'
else
cmd = 'ls'
end
assert_equal(File.popen(cmd) { |f| f.read },
@zipFile.file.popen(cmd) { |f| f.read })