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:
parent
2681dd96b1
commit
dc3147c101
29 changed files with 153 additions and 145 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue