Add support for images

This commit is contained in:
2025-12-02 11:43:25 +01:00
parent 15493da657
commit 980192253f
15 changed files with 481 additions and 6 deletions

View File

@@ -26,7 +26,9 @@ module EzdocTestHelpers
Ezdoc::Document.create(file.path, &block)
Zip::File.open(file.path) do |zip|
zip.each do |entry|
result[entry.name] = zip.read(entry.name).force_encoding("UTF-8") if entry.name.end_with?(".xml")
if entry.name.end_with?(".xml") || entry.name.end_with?(".rels")
result[entry.name] = zip.read(entry.name).force_encoding("UTF-8")
end
end
end
end