Sha256: 510ca1a006b778e0b7ab4a65e0723b830582cdd2d2f76bff5e304db09d3a5fc0

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

FactoryGirl.define do
  factory :invoice_bar_receipt_template, class: InvoiceBar::ReceiptTemplate do
    name { generate :invoice_bar_name }
    
    user { FactoryGirl.create(:invoice_bar_user) }
    account { FactoryGirl.create(:invoice_bar_account) }
  end
  
  factory :invoice_bar_filled_receipt_template, class: InvoiceBar::ReceiptTemplate do
    issue_date { Date.yesterday }
    contact_name 'Company'
    contact_ic 1029392
    contact_dic 'CZ898989'
    address { FactoryGirl.build(:invoice_bar_address) }
    amount 1000000

    user { FactoryGirl.create(:invoice_bar_user) }
    account { FactoryGirl.create(:invoice_bar_account) }
    items { [FactoryGirl.build(:invoice_bar_item)] }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 test/factories/invoice_bar_receipt_template.rb
invoice_bar-0.0.5 test/factories/invoice_bar_receipt_template.rb
invoice_bar-0.0.4 test/factories/invoice_bar_receipt_template.rb
invoice_bar-0.0.3 test/factories/invoice_bar_receipt_template.rb
invoice_bar-0.0.2 test/factories/invoice_bar_receipt_template.rb
invoice_bar-0.0.1 test/factories/invoice_bar_receipt_template.rb