Add tests to invoice

This commit is contained in:
Martin Lensment 2015-04-10 13:19:54 +03:00
parent 416842f924
commit 7eff257434
7 changed files with 119 additions and 26 deletions

View file

@ -1,9 +1,12 @@
Fabricator(:invoice) do
invoice_type 'DEB'
due_date { Time.zone.now.to_date + 1.day }
payment_term { 'Prepayment' }
buyer_name 'Registrar 1'
currency { 'EUR' }
description { 'Invoice no. 1' }
description { 'Invoice no. 1' }
domain
due_date { Time.zone.now.to_date + 1.day }
invoice_type 'DEB'
seller_iban { '123' }
seller_name { 'EIS' }
seller_city { 'Tallinn' }
seller_street { 'Paldiski mnt. 123' }
invoice_items(count: 2)
vat_prc 0.2
end