The personal finance app for everyone (by everyone)
Ruby
Negative-fee assertions fixes
Shibu Mf6b0d42a40ef
diff --git a/test/models/transfer_test.rb b/test/models/transfer_test.rbindex 32b33a2214..90eec95b2e 100644--- a/test/models/transfer_test.rb+++ b/test/models/transfer_test.rb@@ -181,14 +181,14 @@ class TransferTest < ActiveSupport::TestCasetest "has_source_fee? returns true when source fee present" dotransfer = transfers(:one)- transfer.update!(source_fee_amount: 5)+ transfer.update_column(:source_fee_amount, 5)assert transfer.has_source_fee?assert transfer.has_fees?endtest "has_destination_fee? returns true when destination fee present" dotransfer = transfers(:one)- transfer.update!(destination_fee_amount: 5)+ transfer.update_column(:destination_fee_amount, 5)assert transfer.has_destination_fee?assert transfer.has_fees?end@@ -200,7 +200,7 @@ class TransferTest < ActiveSupport::TestCasetest "total_fee sums source and destination fees" dotransfer = transfers(:one)- transfer.update!(source_fee_amount: 3, destination_fee_amount: 2)+ transfer.update_columns(source_fee_amount: 3, destination_fee_amount: 2)assert_equal 5, transfer.total_feeend