mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Preserve original transaction names when enriching (#1556)
* Preserve original transaction name * Remove stale method * Fix tests
This commit is contained in:
@@ -90,10 +90,4 @@ class Account::EntryTest < ActiveSupport::TestCase
|
||||
|
||||
assert_equal Money.new(-200), family.entries.income_total("USD")
|
||||
end
|
||||
|
||||
# See: https://github.com/maybe-finance/maybe/wiki/vision#signage-of-money
|
||||
test "transactions with negative amounts are inflows, positive amounts are outflows to an account" do
|
||||
assert create_transaction(amount: -10).inflow?
|
||||
assert create_transaction(amount: 10).outflow?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user