mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Add RejectedTransfer model, simplify auto matching (#1690)
* Allow transfers to match when inflow is after outflow * Simplify transfer auto matching with RejectedTransfer model * Validations * Reset migrations
This commit is contained in:
parent
0b4e314f58
commit
de90b29201
18 changed files with 221 additions and 79 deletions
|
@ -25,8 +25,8 @@ class TransfersControllerTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
test "can destroy transfer" do
|
||||
assert_difference -> { Transfer.count } => -1, -> { Account::Transaction.count } => 0 do
|
||||
test "soft deletes transfer" do
|
||||
assert_difference -> { Transfer.count }, -1 do
|
||||
delete transfer_url(transfers(:one))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue