fix silly test bug
git-svn-id: file:///home/svn/framework3/trunk@10648 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7b576be821
commit
026d411660
|
@ -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 })
|
||||
|
|
Loading…
Reference in New Issue