From a152b4a21250743933a3eabe6379467b83221b18 Mon Sep 17 00:00:00 2001
From: Monica Cellio <cellio@pobox.com>
Date: Sat, 1 Feb 2025 22:37:53 -0500
Subject: [PATCH] update user controller test to remove website/twitter, add
 discord

---
 test/controllers/users_controller_test.rb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
index 8d957f100..345e79b5c 100644
--- a/test/controllers/users_controller_test.rb
+++ b/test/controllers/users_controller_test.rb
@@ -113,13 +113,12 @@ class UsersControllerTest < ActionController::TestCase
     assert_response 200
   end
 
-  test 'should update profile text' do
+  test 'should update profile text and discord name' do
     sign_in users(:standard_user)
     patch :update_profile, params: {
       user: {
         profile_markdown: 'ABCDEF GHIJKL',
-        website: 'https://example.com/user',
-        twitter: 'standard_user'
+        discord: 'example_user#1234'
       }
     }
     assert_response 302
@@ -127,7 +126,7 @@ class UsersControllerTest < ActionController::TestCase
     assert_not_nil assigns(:user)
     assert_equal users(:standard_user).id, assigns(:user).id
     assert_not_nil assigns(:user).profile
-    assert_equal 'standard_user', assigns(:user).twitter
+    assert_equal 'example_user#1234', assigns(:user).discord
   end
 
   test 'should get full posts list for a user' do
-- 
GitLab