Sha256: 0d2022650115b12550bbe2ddf66610e8f896b8e180c159f740ae5b03c2c4b73a
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
require_relative '../../test_helper' describe Html2Pdf::Utils do context '#to_pdf' do it 'raises error on invalid input file' do assert_raises(RuntimeError) { Html2Pdf::Utils.to_pdf('bad-file-name') } end end context '#softwares_installed?' do it 'raises error if the requirements are not met' do assert(Html2Pdf::Utils.softwares_installed?, 'Must have valid installation of `wkhtmltopdf` and `ghostscript`') end end end
Version data entries
4 entries across 4 versions & 1 rubygems