1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Move merchants to top-level namespace (#895)

This commit is contained in:
Zach Gollwitzer 2024-06-20 08:38:59 -04:00 committed by GitHub
parent 2681dd96b1
commit dc3147c101
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 153 additions and 145 deletions

View file

@ -160,7 +160,7 @@ class TransactionsControllerTest < ActionDispatch::IntegrationTest
transaction.update! \
excluded: false,
category_id: Category.first.id,
merchant_id: Transaction::Merchant.first.id,
merchant_id: Merchant.first.id,
notes: "Starting note"
end
@ -170,7 +170,7 @@ class TransactionsControllerTest < ActionDispatch::IntegrationTest
transaction_ids: transactions.map(&:id),
excluded: true,
category_id: Category.second.id,
merchant_id: Transaction::Merchant.second.id,
merchant_id: Merchant.second.id,
notes: "Updated note"
}
}
@ -182,7 +182,7 @@ class TransactionsControllerTest < ActionDispatch::IntegrationTest
assert_equal Date.current, transaction.date
assert transaction.excluded
assert_equal Category.second, transaction.category
assert_equal Transaction::Merchant.second, transaction.merchant
assert_equal Merchant.second, transaction.merchant
assert_equal "Updated note", transaction.notes
end
end