mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:54:33 +08:00
DEV: Fix test (#22018)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user