Skip to content

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.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