mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 15:15:01 +00:00
feat(enable-banking): enhance transaction import, metadata handling, and UI (#1406)
* feat(enable-banking): enhance transaction import, metadata handling, and UI * fix(enable-banking): address security, sync edge cases and PR feedback * fix(enable-banking): resolve silent failures, auth overrides, and sync logic bugs * fix(enable-banking): resolve sync logic bugs, trailing whitespaces, and apply safe_psu_headers * test(enable-banking): mock set_current_balance to return success result * fix(budget): properly filter pending transactions and classify synced loan payments * style: fix trailing whitespace detected by rubocop * refactor: address code review feedback for Enable Banking sync and reporting --------- Signed-off-by: Louis <contact@boul2gom.com> Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
@@ -25,6 +25,18 @@ class TransactionTest < ActiveSupport::TestCase
|
||||
assert_not transaction.pending?
|
||||
end
|
||||
|
||||
test "pending? returns true for enable_banking pending transactions" do
|
||||
transaction = Transaction.new(extra: { "enable_banking" => { "pending" => true } })
|
||||
|
||||
assert transaction.pending?
|
||||
end
|
||||
|
||||
test "pending? returns false for enable_banking non-pending transactions" do
|
||||
transaction = Transaction.new(extra: { "enable_banking" => { "pending" => false } })
|
||||
|
||||
assert_not transaction.pending?
|
||||
end
|
||||
|
||||
test "investment_contribution is a valid kind" do
|
||||
transaction = Transaction.new(kind: "investment_contribution")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user