From 3a2e5d6d414c3d19bfeac72d6f9f8da8884bcf30 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 5 Jun 2025 19:33:11 +0300 Subject: [PATCH] Test user company record when updating profile --- test/controllers/profiles_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/controllers/profiles_controller_test.rb b/test/controllers/profiles_controller_test.rb index 9b5fb1094..11526046d 100644 --- a/test/controllers/profiles_controller_test.rb +++ b/test/controllers/profiles_controller_test.rb @@ -78,7 +78,8 @@ class ProfilesControllerTest < ActionDispatch::IntegrationTest assert_response :success assert_template :show assert_select ".alert-success", /^Profile updated./ - assert_select "dd", "new company" + user.reload + assert_equal "new company", user.company end def test_update_empty_social_link -- 2.39.5