mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Nested Categories (#1561)
* Prepare entry search for nested categories * Subcategory implementation * Remove caching for test stability
This commit is contained in:
parent
a4d10097d5
commit
77def1db40
31 changed files with 297 additions and 234 deletions
|
@ -15,15 +15,6 @@ class RegistrationsControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_redirected_to root_url
|
||||
end
|
||||
|
||||
test "create seeds default transaction categories" do
|
||||
assert_difference "Category.count", Category::DEFAULT_CATEGORIES.size do
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password" } }
|
||||
end
|
||||
end
|
||||
|
||||
test "create when hosted requires an invite code" do
|
||||
with_env_overrides REQUIRE_INVITE_CODE: "true" do
|
||||
assert_no_difference "User.count" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue