mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Update fixtures
This commit is contained in:
parent
2f2ce97a76
commit
f36226ae1e
2 changed files with 21 additions and 8 deletions
13
test/fixtures/invoice_items.yml
vendored
Normal file
13
test/fixtures/invoice_items.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
description: Acme services
|
||||
quantity: 2
|
||||
unit: pc
|
||||
price: 5
|
||||
|
||||
valid:
|
||||
<<: *DEFAULTS
|
||||
invoice: valid
|
||||
|
||||
another:
|
||||
<<: *DEFAULTS
|
||||
invoice: valid
|
16
test/fixtures/invoices.yml
vendored
16
test/fixtures/invoices.yml
vendored
|
@ -1,11 +1,12 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
created_at: <%= Time.zone.parse '2010-07-05' %>
|
||||
due_date: <%= Time.zone.parse '2010-08-05' %>
|
||||
created_at: <%= Date.parse '2010-07-05' %>
|
||||
due_date: <%= Date.parse '2010-07-06' %>
|
||||
currency: EUR
|
||||
seller_name: John Doe
|
||||
seller_iban: 1234
|
||||
buyer_name: Jane Doe
|
||||
vat_rate: 1
|
||||
vat_rate: 0.2
|
||||
total: 20
|
||||
|
||||
valid:
|
||||
<<: *DEFAULTS
|
||||
|
@ -16,17 +17,16 @@ exported:
|
|||
|
||||
cancelled:
|
||||
<<: *DEFAULTS
|
||||
cancelled_at: 2010-07-05
|
||||
cancelled_at: <%= Date.parse '2010-07-05' %>
|
||||
|
||||
paid:
|
||||
<<: *DEFAULTS
|
||||
sum_cache: 1
|
||||
total: 1
|
||||
|
||||
outstanding:
|
||||
<<: *DEFAULTS
|
||||
due_date: <%= Time.zone.parse '2010-07-06' %>
|
||||
due_date: <%= Date.parse '2010-07-04' %>
|
||||
|
||||
overdue:
|
||||
<<: *DEFAULTS
|
||||
due_date: <%= Time.zone.parse '2010-07-05' %>
|
||||
|
||||
due_date: <%= Date.parse '2010-07-03' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue