diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2024-05-12 15:17:57 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2024-05-12 15:20:35 +0300 |
| commit | d3a642763aa8501bfd53ce4713d7b44b7c92020e (patch) | |
| tree | 256539e2510e64ef3f0da65a1b69ab70edb034af | |
| parent | 6fefa78eea4955b01293a341a28f8a6b44fc4d68 (diff) | |
fix gepub 1.0.16 compatibility
| -rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 25a46d9..d7f4107 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -80,8 +80,12 @@ RSpec.configure do |config| return result if result.is_a?(GEPUB::Book) output = Pathname.new result.attr('outfile') - book = GEPUB::Book.parse output - [book, output] + [ + output.open do |f| + GEPUB::Book.parse f + end, + output + ] end end |
