From 2c5d072b447ca1525379339603d00f2841bc671f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 25 Aug 2025 15:26:21 +0100 Subject: [PATCH] Fix test failures from #6351 --- app/helpers/user_helper.rb | 2 ++ test/helpers/user_helper_test.rb | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index d37a20521..8693970ce 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -1,4 +1,6 @@ module UserHelper + include InlineSvg::ActionView::Helpers + # User images def user_image(user, options = {}) diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index 16c854a51..30f2d0868 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -111,8 +111,7 @@ class UserHelperTest < ActionView::TestCase def test_auth_button button = auth_button("google") - img_tag = "\"Google" - assert_equal("#{img_tag}", button) + assert_match %r{^.*$}, button end private -- 2.39.5