Add some model tests (#9)
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #9
This commit is contained in:
Andrew Tomaka 2023-11-22 21:41:03 -05:00
parent dd881ee41c
commit e1a7f4fbbd
11 changed files with 113 additions and 37 deletions

View file

@ -1,9 +1,5 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
description: MyString
amount: 9.99
two:
description: MyString
amount: 9.99
description: Credit Card Bill One
amount: 1_000.00

View file

@ -1,15 +1,29 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
description: MyString
payment: 9.99
period: 1
monthly_expense:
description: Monthly Expense
payment: 120.00
period: monthly
credit_card: true
estimated: false
annual_expense:
description: Annual Expense
payment: 120.00
period: annually
credit_card: true
estimated: false
weekly_expense:
description: Weekly Expense
payment: 120.00
period: weekly
credit_card: false
estimated: false
two:
description: MyString
payment: 9.99
period: 1
quarterly_expense:
description: Quarterly Expense
payment: 120.00
period: quarterly
credit_card: false
estimated: false

View file

@ -1,13 +1,25 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
description: MyString
included: false
amount: 9.99
included_1:
description: Salary
included: true
amount: 85_000.00
member: one
two:
description: MyString
included_2:
description: Salary
included: true
amount: 15_000.00
member: one
excluded:
description: Bonus
included: false
amount: 9.99
amount: 10_000
member: one
another_included:
description: Salary
included: true
amount: 10_000.00
member: two