DEV: Fix test (#22018)

This commit is contained in:
Bianca Nenciu 2023-06-09 00:12:13 +03:00 committed by GitHub
parent 67afd85aae
commit 3817e08b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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