1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 14:49:38 +02:00

Remove unused settings temporarily (#1136)

This commit is contained in:
Zach Gollwitzer 2024-08-27 17:10:31 -04:00 committed by GitHub
parent 38c2b4670c
commit c05ee9b572
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 84 additions and 207 deletions

View file

@ -1,11 +0,0 @@
require "test_helper"
class Settings::NotificationsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in users(:family_admin)
end
test "get" do
get settings_notifications_url
assert_response :success
end
end

View file

@ -1,11 +0,0 @@
require "test_helper"
class Settings::SecuritiesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in users(:family_admin)
end
test "get" do
get settings_security_url
assert_response :success
end
end

View file

@ -5,20 +5,15 @@ class SettingsTest < ApplicationSystemTestCase
sign_in @user = users(:family_admin)
@settings_links = [
[ "Account", "Account", settings_profile_path ],
[ "Preferences", "Preferences", settings_preferences_path ],
[ "Notifications", "Notifications", settings_notifications_path ],
[ "Security", "Security", settings_security_path ],
[ "Billing", "Billing", settings_billing_path ],
[ "Accounts", "Accounts", accounts_path ],
[ "Tags", "Tags", tags_path ],
[ "Categories", "Categories", categories_path ],
[ "Merchants", "Merchants", merchants_path ],
[ "Rules", "Rules", rules_transactions_path ],
[ "Imports", "Imports", imports_path ],
[ "What's New", "What's New", changelog_path ],
[ "Feedback", "Feedback", feedback_path ],
[ "Invite friends", "Invite friends", invites_path ]
[ "Account", settings_profile_path ],
[ "Preferences", settings_preferences_path ],
[ "Accounts", accounts_path ],
[ "Tags", tags_path ],
[ "Categories", categories_path ],
[ "Merchants", merchants_path ],
[ "Imports", imports_path ],
[ "What's new", changelog_path ],
[ "Feedback", feedback_path ]
]
end
@ -26,6 +21,12 @@ class SettingsTest < ApplicationSystemTestCase
open_settings_from_sidebar
assert_selector "h1", text: "Account"
assert_current_path settings_profile_path
@settings_links.each do |name, path|
click_link name
assert_selector "h1", text: name
assert_current_path path
end
end
private