From 3817e08b0f5a57a92b6981ccf0cf2f279e478d28 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Fri, 9 Jun 2023 00:12:13 +0300 Subject: [PATCH] DEV: Fix test (#22018) --- spec/initializers/track_setting_changes_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/initializers/track_setting_changes_spec.rb b/spec/initializers/track_setting_changes_spec.rb index 024a61b7ec7..de96e852caf 100644 --- a/spec/initializers/track_setting_changes_spec.rb +++ b/spec/initializers/track_setting_changes_spec.rb @@ -56,13 +56,15 @@ RSpec.describe "Setting changes" do topic = Topic.find(SiteSetting.welcome_topic_id) expect(topic.title).to include(SiteSetting.title) - expect(topic.first_post.raw).to include(SiteSetting.title) end it "updates the welcome topic when site_description changes" do + SiteSetting.title = SecureRandom.alphanumeric SiteSetting.site_description = SecureRandom.alphanumeric topic = Topic.find(SiteSetting.welcome_topic_id) + expect(topic.title).to include(SiteSetting.title) + expect(topic.first_post.raw).to include(SiteSetting.title) expect(topic.first_post.raw).to include(SiteSetting.site_description) end end