From f36226ae1e4b375fc09bcb31e874e9e4ce144891 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Sun, 12 Nov 2017 00:55:50 +0200 Subject: [PATCH] Update fixtures --- test/fixtures/invoice_items.yml | 13 +++++++++++++ test/fixtures/invoices.yml | 16 ++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 test/fixtures/invoice_items.yml diff --git a/test/fixtures/invoice_items.yml b/test/fixtures/invoice_items.yml new file mode 100644 index 000000000..c99e3bd13 --- /dev/null +++ b/test/fixtures/invoice_items.yml @@ -0,0 +1,13 @@ +DEFAULTS: &DEFAULTS + description: Acme services + quantity: 2 + unit: pc + price: 5 + +valid: + <<: *DEFAULTS + invoice: valid + +another: + <<: *DEFAULTS + invoice: valid diff --git a/test/fixtures/invoices.yml b/test/fixtures/invoices.yml index cd4e7fbcc..cfebd2525 100644 --- a/test/fixtures/invoices.yml +++ b/test/fixtures/invoices.yml @@ -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' %>