Add income tests

This commit is contained in:
Andrew Tomaka 2023-11-22 18:58:53 -05:00
parent b460ae31cf
commit 2fff930794
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 17 additions and 11 deletions

View file

@ -1,13 +1,19 @@
# 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
member: two
amount: 10_000
member: one

View file

@ -1,7 +1,7 @@
require "test_helper"
class IncomeTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
def test_total
assert_equal 100_000.00, Income.total
end
end