Sha256: caa7623fc0c9a2d94bee6962d581023ab28066f0953d8c4da3dd9aa389f9cf60

Contents?: true

Size: 431 Bytes

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
html2pdf-0.2.6 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.5 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.4 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.3 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.2 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.1 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.2.0 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.7 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.6 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.5 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.4 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.3 test/lib/html2pdf/test_html2pdf.rb
html2pdf-0.1.2 test/lib/html2pdf/test_html2pdf.rb