test/zipfilesystemtest.rb in rubyzip-0.5.12 vs test/zipfilesystemtest.rb in rubyzip-0.9.1
- old
+ new
@@ -268,20 +268,20 @@
def test_zero?
assert(! @zipFile.file.zero?("notAFile"))
assert(! @zipFile.file.zero?("file1"))
assert(@zipFile.file.zero?("dir1"))
blockCalled = false
- ZipFile.open("data/generated/4entry.zip") {
+ ZipFile.open("data/generated/5entry.zip") {
|zf|
blockCalled = true
assert(zf.file.zero?("data/generated/empty.txt"))
}
assert(blockCalled)
assert(! @zipFile.file.stat("file1").zero?)
assert(@zipFile.file.stat("dir1").zero?)
blockCalled = false
- ZipFile.open("data/generated/4entry.zip") {
+ ZipFile.open("data/generated/5entry.zip") {
|zf|
blockCalled = true
assert(zf.file.stat("data/generated/empty.txt").zero?)
}
assert(blockCalled)