2022-11-20 15:52:18 -05:00
|
|
|
require "test_helper"
|
|
|
|
|
|
|
|
class MemberTest < ActiveSupport::TestCase
|
2023-11-22 21:41:03 -05:00
|
|
|
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
|
2022-11-20 15:52:18 -05:00
|
|
|
end
|