Add support for images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user