Skip to content

Commit

Permalink
Attempts to debug rubyzip#510 via CI.
Browse files Browse the repository at this point in the history
I don't have a Mac so CI will have to do...
  • Loading branch information
hainesr committed Jan 23, 2022
1 parent 05a1739 commit e21efb2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Binary file added test/data/archive-6-entries.zip
Binary file not shown.
12 changes: 12 additions & 0 deletions test/file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,18 @@ def test_find_get_entry
end
end

# Abusing CI to help debug this as I don't have a Mac!
def test_odd_macos_behaviour
require 'pp'

zip_file = 'test/data/archive-6-entries.zip'

::Zip::File.open(zip_file) do |zf|
pp zf
assert_equal(6, zf.size)
end
end

private

def assert_contains(zip_file, entry_name, filename = entry_name)
Expand Down

0 comments on commit e21efb2

Please sign in to comment.