mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 20:44:08 +00:00
FIX AI categorization & Twelvedata currency (#354)
* FIX AI categorization * FIX twelve data API Looking at api docs we were using the wrong field, currency is in meta tag.
This commit is contained in:
@@ -33,8 +33,9 @@ class Family::AutoCategorizerTest < ActiveSupport::TestCase
|
||||
assert_equal test_category, txn2.reload.category
|
||||
assert_nil txn3.reload.category
|
||||
|
||||
# After auto-categorization, all transactions are locked and no longer enrichable
|
||||
assert_equal 0, @account.transactions.reload.enrichable(:category_id).count
|
||||
# After auto-categorization, only successfully categorized transactions are locked
|
||||
# txn3 remains enrichable since it didn't get a category (allows retry)
|
||||
assert_equal 1, @account.transactions.reload.enrichable(:category_id).count
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user