Sha256: 7602ffb3e64cfe4cfa4bb05833ed67376aaee72f962594a7d98554888f7be3fb

Contents?: true

Size: 443 Bytes

Versions: 9

Compression:

Stored size: 443 Bytes

Contents

require 'test_helper'

class InvoicePrinterTest < Minitest::Test
  include InvoicePrinterHelpers

  def test_render_document
    invoice = InvoicePrinter::Document.new(default_document_params)
    rendered_pdf = InvoicePrinter.render(document: invoice)
    pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
    strings = InvoicePrinter::PDFDocument.new(document: invoice).to_a

    assert_equal strings, pdf_analysis.strings
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
invoice_printer-1.0.0 test/invoice_printer_test.rb
invoice_printer-1.0.0.rc1 test/invoice_printer_test.rb
invoice_printer-0.0.9 test/invoice_printer_test.rb
invoice_printer-0.0.8 test/invoice_printer_test.rb
invoice_printer-0.0.7 test/invoice_printer_test.rb
invoice_printer-0.0.6 test/invoice_printer_test.rb
invoice_printer-0.0.5 test/invoice_printer_test.rb
invoice_printer-0.0.4 test/invoice_printer_test.rb
invoice_printer-0.0.3 test/invoice_printer_test.rb