Added Decimal Support in min transaction (#1681)

* Added Decimal Support in min transaction

* fix: Using inbuilt money field

* Updated Test
This commit is contained in:
Harshit Chaudhary
2025-01-27 20:03:56 +05:30
committed by GitHub
parent 2a1b5fab1a
commit eabfb7aae1
3 changed files with 6 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ class AccountsTest < ApplicationSystemTestCase
test "can create credit card account" do
assert_account_created "CreditCard" do
fill_in "Available credit", with: 1000
fill_in "Minimum payment", with: 25
fill_in "account[accountable_attributes][minimum_payment]", with: 25.51
fill_in "APR", with: 15.25
fill_in "Expiration date", with: 1.year.from_now.to_date
fill_in "Annual fee", with: 100