budget/test/models/member_test.rb
Andrew Tomaka e1a7f4fbbd
All checks were successful
continuous-integration/drone/push Build is passing
Add some model tests (#9)
Reviewed-on: #9
2023-11-22 21:41:03 -05:00

27 lines
516 B
Ruby

require "test_helper"
class MemberTest < ActiveSupport::TestCase
def member
members(:one)
end
def test_income
assert_equal 110_000.00, member.income
end
def test_included_income
assert_equal 100_000.00, member.included_income
end
def test_others_included_income
assert_equal 10_000.00, member.others_included_income
end
def test_burden_percent
assert_equal 0.91, member.burden_percent
end
def test_burden_amount
assert_equal 627.90, member.burden_amount
end
end