Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Small improvements to test names.
Browse files Browse the repository at this point in the history
  • Loading branch information
floehopper committed May 27, 2011
1 parent 84d8136 commit 93f38a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/interest_only_tracker_loan_test.rb
Expand Up @@ -27,13 +27,13 @@ def test_after_first_monthly_payment
assert_equal @amount - @expected_low_monthly_payment, @borrower.cash_position
end

def test_after_last_monthly_payment_before_base_rate_rise
def test_after_monthly_payment_immediately_before_base_rate_rise
@simulator.play(0..150)
assert_equal -@amount + (@expected_low_monthly_payment * 150), @lender.cash_position
assert_equal @amount - (@expected_low_monthly_payment * 150), @borrower.cash_position
end

def test_after_first_monthly_payment_after_base_rate_rise
def test_after_monthly_payment_immediately_after_base_rate_rise
@simulator.play(0..151)
assert_equal -@amount + (@expected_low_monthly_payment * 150) + @expected_high_monthly_payment, @lender.cash_position
assert_equal @amount - (@expected_low_monthly_payment * 150) - @expected_high_monthly_payment, @borrower.cash_position
Expand Down
4 changes: 2 additions & 2 deletions test/repayment_tracker_loan_test.rb
Expand Up @@ -27,13 +27,13 @@ def test_after_first_monthly_payment
assert_equal @amount - @expected_low_monthly_payment, @borrower.cash_position
end

def test_after_last_monthly_payment_before_base_rate_rise
def test_after_monthly_payment_immediately_before_base_rate_rise
@simulator.play(0..150)
assert_equal -@amount + (@expected_low_monthly_payment * 150), @lender.cash_position
assert_equal @amount - (@expected_low_monthly_payment * 150), @borrower.cash_position
end

def test_after_first_monthly_payment_after_base_rate_rise
def test_after_monthly_payment_immediately_after_base_rate_rise
@simulator.play(0..151)
assert_equal -@amount + (@expected_low_monthly_payment * 150) + @expected_high_monthly_payment, @lender.cash_position
assert_equal @amount - (@expected_low_monthly_payment * 150) - @expected_high_monthly_payment, @borrower.cash_position
Expand Down

0 comments on commit 93f38a2

Please sign in to comment.