budget/test/models/member_test.rb

28 lines
516 B
Ruby
Raw Normal View History

2022-11-20 15:52:18 -05:00
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
2022-11-20 15:52:18 -05:00
end