Skip to content

Commit

Permalink
try using path instead of file...
Browse files Browse the repository at this point in the history
  • Loading branch information
someth2say committed May 2, 2024
1 parent afb711a commit 8603b16
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ def to_epub(input, opts = {})
result = convert input, opts
return result if result.is_a?(GEPUB::Book)

book = GEPUB::Book.parse File.new result.attr('outfile')
[book, Pathname.new(result.attr('outfile'))]
output = Pathname.new result.attr('outfile')
book = GEPUB::Book.parse output
[book, output]

# book = GEPUB::Book.parse File.new result.attr('outfile')
# [book, Pathname.new(result.attr('outfile'))]
end
end

Expand Down

0 comments on commit 8603b16

Please sign in to comment.