diff options
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 941c643..4d61d2f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -61,12 +61,6 @@ RSpec.configure do |config| examples_dir.join(*path) end - def skip_unless_has_kindlegen - require 'kindlegen' - rescue LoadError - skip 'kindlegen gem is unavailable' - end - def convert(input, opts = {}) opts[:backend] = 'epub3' opts[:header_footer] = true @@ -89,15 +83,6 @@ RSpec.configure do |config| book = GEPUB::Book.parse output [book, output] end - - def to_mobi(input, opts = {}) - skip_unless_has_kindlegen - (opts[:attributes] ||= {})['ebook-format'] = 'mobi' - doc = convert input, opts - output = Pathname.new(doc.attr('outfile')).sub_ext '.mobi' - expect(output).to exist - output - end end RSpec::Matchers.define :have_size do |expected| |
