1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

loan: Set the first valuation as the original principal. (#2088)

Fix: #1645.
This commit is contained in:
Joseph Ho 2025-04-14 09:09:25 -04:00 committed by GitHub
parent 5cb2183bdf
commit f181ba941f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 59 additions and 13 deletions

View file

@ -59,6 +59,7 @@ class AccountsTest < ApplicationSystemTestCase
test "can create loan account" do
assert_account_created "Loan" do
fill_in "account[accountable_attributes][initial_balance]", with: 1000
fill_in "Interest rate", with: 5.25
select "Fixed", from: "Rate type"
fill_in "Term (months)", with: 360