Sha256: 21965086ee8dc36c346304d83f50a2ca0be96cd38a6314aa64b2011c949b6fb9

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

require_relative '../../test_helper'
describe Html2Pdf do
  context '#to_pdf' do
    it 'raises error on invalid input file' do
      assert_raises(RuntimeError) { Html2Pdf.to_pdf('bad-file-name') }
    end
  end
  context '#softwares_installed?' do
    it 'raises error if the requirements are not met' do
      assert(Html2Pdf.softwares_installed?,
             'Must have valid installation of `wkhtmltopdf`')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html2pdf-0.1.1 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.0 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.0.7 test/lib/html2pdf/test_html2pdf.rb