Add income tests
This commit is contained in:
parent
b460ae31cf
commit
2fff930794
2 changed files with 17 additions and 11 deletions
22
test/fixtures/incomes.yml
vendored
22
test/fixtures/incomes.yml
vendored
|
@ -1,13 +1,19 @@
|
||||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||||
|
|
||||||
one:
|
included_1:
|
||||||
description: MyString
|
description: Salary
|
||||||
included: false
|
included: true
|
||||||
amount: 9.99
|
amount: 85_000.00
|
||||||
member: one
|
member: one
|
||||||
|
|
||||||
two:
|
included_2:
|
||||||
description: MyString
|
description: Salary
|
||||||
|
included: true
|
||||||
|
amount: 15_000.00
|
||||||
|
member: one
|
||||||
|
|
||||||
|
excluded:
|
||||||
|
description: Bonus
|
||||||
included: false
|
included: false
|
||||||
amount: 9.99
|
amount: 10_000
|
||||||
member: two
|
member: one
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
|
|
||||||
class IncomeTest < ActiveSupport::TestCase
|
class IncomeTest < ActiveSupport::TestCase
|
||||||
# test "the truth" do
|
def test_total
|
||||||
# assert true
|
assert_equal 100_000.00, Income.total
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue