diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
index 7ac6c75671c13ae1697b238ce258ead03afb110b..1363bcdd13f8664e24cd1c3a213c1357a44eff22 100644
--- a/test/controllers/users_controller_test.rb
+++ b/test/controllers/users_controller_test.rb
@@ -130,6 +130,19 @@ class UsersControllerTest < ActionController::TestCase
     assert_equal assigns(:user).profile.strip, '<p>ABCDEF GHIJKL</p>'
   end
 
+  test 'should update websites' do
+    sign_in users(:standard_user)
+    patch :update_profile, params: {
+            user: { user_websites_attributes: {
+                      '0': { label: 'web', url: 'example.com' }
+                    }
+                  }
+          }
+    assert_not_nil assigns(:user).user_websites
+    assert_equal 'web', assigns(:user).user_websites.first.label
+    assert_equal 'example.com', assigns(:user).user_websites.first.url
+  end
+  
   test 'should update user discord link' do
     sign_in users(:standard_user)
     patch :update_profile, params: {