Sha256: b2cbaedb5616572c6f0053936ead1a8972210532c8917a682091fad7bbae31cc
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter '/test|deps/' end require 'test/unit' require 'test/unit/notify' require 'open3' require 'shellwords' require 'pry' class Test::Unit::TestCase def assert_valid_epub(file) jar = File.join(ENV['GEM_HOME'], 'gems', 'epubcheck-3.0.0', 'lib', 'epubcheck-3.0', 'epubcheck-3.0.jar') stderr, status = Open3.capture2e "java -jar #{jar.shellescape} #{file.shellescape}" assert_true (status.exitstatus == 0 or stderr !~ /^ERROR: /), stderr end end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'epub'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epub-maker-0.0.5 | test/helper.rb |
epub-maker-0.0.4 | test/helper.rb |
epub-maker-0.0.3 | test/helper.rb |