Sha256: 16b1948eaf96634b8e06ef05a99cf1ce8102ccb5a00aa2fb94a969e86a5ebd2f
Contents?: true
Size: 942 Bytes
Versions: 6
Compression:
Stored size: 942 Bytes
Contents
FactoryGirl.define do factory :invoice_bar_invoice, class: InvoiceBar::Invoice do number { generate :invoice_bar_invoice_number } issue_date { Date.today } due_date { issue_date + 14.days } contact_name 'Company' contact_ic 102939 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 factory :invoice_bar_incomplete_invoice, class: InvoiceBar::Invoice do number { generate :invoice_bar_invoice_number } contact_name 'Company' contact_ic 102939 contact_dic 'CZ21' 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