diff --git a/test/fixtures/account_activities.yml b/test/fixtures/account_activities.yml new file mode 100644 index 000000000..06a5b4006 --- /dev/null +++ b/test/fixtures/account_activities.yml @@ -0,0 +1,7 @@ +DEFAULTS: &DEFAULTS + account_id: 1 + +one: + <<: *DEFAULTS + invoice: paid + bank_transaction: one diff --git a/test/fixtures/bank_transactions.yml b/test/fixtures/bank_transactions.yml new file mode 100644 index 000000000..b0b4d661c --- /dev/null +++ b/test/fixtures/bank_transactions.yml @@ -0,0 +1,3 @@ +one: + sum: 1 + currency: EUR diff --git a/test/fixtures/invoices.yml b/test/fixtures/invoices.yml new file mode 100644 index 000000000..cd4e7fbcc --- /dev/null +++ b/test/fixtures/invoices.yml @@ -0,0 +1,32 @@ +DEFAULTS: &DEFAULTS + created_at: <%= Time.zone.parse '2010-07-05' %> + due_date: <%= Time.zone.parse '2010-08-05' %> + currency: EUR + seller_name: John Doe + seller_iban: 1234 + buyer_name: Jane Doe + vat_rate: 1 + +valid: + <<: *DEFAULTS + +exported: + <<: *DEFAULTS + exported: true + +cancelled: + <<: *DEFAULTS + cancelled_at: 2010-07-05 + +paid: + <<: *DEFAULTS + sum_cache: 1 + +outstanding: + <<: *DEFAULTS + due_date: <%= Time.zone.parse '2010-07-06' %> + +overdue: + <<: *DEFAULTS + due_date: <%= Time.zone.parse '2010-07-05' %> + diff --git a/test/test_helper.rb b/test/test_helper.rb index 1a9c4d378..b0c3d26e5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,6 +6,8 @@ require 'capybara/minitest' class ActiveSupport::TestCase include FactoryBot::Syntax::Methods + + fixtures :all end class ActionDispatch::IntegrationTest