Test updating account settings

This commit is contained in:
David Heinemeier Hansson
2025-11-02 16:04:51 +01:00
parent 02bd57089d
commit 76c87f6b67
@@ -9,4 +9,10 @@ class Account::SettingsControllerTest < ActionDispatch::IntegrationTest
get account_settings_path
assert_response :success
end
test "update" do
put account_settings_path, params: { account: { name: "New Account Name" }}
assert_equal "New Account Name", Account.sole.name
assert_redirected_to account_settings_path
end
end