summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb8
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