Sha256: 3c178a50c78bb4a5d71a8c6344104160881d608273c3dc11c2263e4b793b343a

Contents?: true

Size: 481 Bytes

Versions: 18

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'

class NotesTest < Minitest::Test
  include InvoicePrinterHelpers

  def test_setting_a_note
    params = default_document_params.merge(
      note: 'ABC is a registered trademark.'
    )
    invoice = InvoicePrinter::Document.new(params)
    rendered_pdf = InvoicePrinter.render(document: invoice)
    pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)

    assert_equal true, pdf_analysis.strings.include?('ABC is a registered trademark.')
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
invoice_printer-2.0.0 test/notes_test.rb
invoice_printer-2.0.0.beta3 test/notes_test.rb
invoice_printer-2.0.0.beta2 test/notes_test.rb
invoice_printer-2.0.0.beta1 test/notes_test.rb
invoice_printer-2.0.0.alpha1 test/notes_test.rb
invoice_printer-1.3.0 test/notes_test.rb
invoice_printer-1.2.0 test/notes_test.rb
invoice_printer-1.2.0.alpha1 test/notes_test.rb
invoice_printer-1.1.0 test/notes_test.rb
invoice_printer-1.1.0.rc1 test/notes_test.rb
invoice_printer-1.0.0 test/notes_test.rb
invoice_printer-1.0.0.rc1 test/notes_test.rb
invoice_printer-0.0.9 test/notes_test.rb
invoice_printer-0.0.8 test/notes_test.rb
invoice_printer-0.0.7 test/notes_test.rb
invoice_printer-0.0.6 test/notes_test.rb
invoice_printer-0.0.5 test/notes_test.rb
invoice_printer-0.0.4 test/notes_test.rb