A platform for community discussion. Free, open, simple.
DEV: Fix test (#22018)
Bianca Nenciu3817e08b0f5a
diff --git a/spec/initializers/track_setting_changes_spec.rb b/spec/initializers/track_setting_changes_spec.rbindex 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" dotopic = Topic.find(SiteSetting.welcome_topic_id)expect(topic.title).to include(SiteSetting.title)- expect(topic.first_post.raw).to include(SiteSetting.title)endit "updates the welcome topic when site_description changes" do+ SiteSetting.title = SecureRandom.alphanumericSiteSetting.site_description = SecureRandom.alphanumerictopic = 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)endend