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

Nested Categories (#1561)
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

* Prepare entry search for nested categories

* Subcategory implementation

* Remove caching for test stability
This commit is contained in:
Zach Gollwitzer 2024-12-20 11:37:26 -05:00 committed by GitHub
parent a4d10097d5
commit 77def1db40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 297 additions and 234 deletions

View file

@ -28,7 +28,7 @@ class CategoriesControllerTest < ActionDispatch::IntegrationTest
new_category = Category.order(:created_at).last
assert_redirected_to transactions_url
assert_redirected_to categories_url
assert_equal "New Category", new_category.name
assert_equal color, new_category.color
end
@ -46,7 +46,7 @@ class CategoriesControllerTest < ActionDispatch::IntegrationTest
new_category = Category.order(:created_at).last
assert_redirected_to transactions_url
assert_redirected_to categories_url
assert_equal "New Category", new_category.name
assert_equal color, new_category.color
assert_equal @transaction.reload.category, new_category
@ -69,6 +69,14 @@ class CategoriesControllerTest < ActionDispatch::IntegrationTest
end
end
assert_redirected_to transactions_url
assert_redirected_to categories_url
end
test "bootstrap" do
assert_difference "Category.count", 16 do
post bootstrap_categories_url
end
assert_redirected_to categories_url
end
end