budget/test/models/member_test.rb

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