mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 01:34:39 +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)
|
topic = Topic.find(SiteSetting.welcome_topic_id)
|
||||||
expect(topic.title).to include(SiteSetting.title)
|
expect(topic.title).to include(SiteSetting.title)
|
||||||
expect(topic.first_post.raw).to include(SiteSetting.title)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "updates the welcome topic when site_description changes" do
|
it "updates the welcome topic when site_description changes" do
|
||||||
|
SiteSetting.title = SecureRandom.alphanumeric
|
||||||
SiteSetting.site_description = SecureRandom.alphanumeric
|
SiteSetting.site_description = SecureRandom.alphanumeric
|
||||||
|
|
||||||
topic = Topic.find(SiteSetting.welcome_topic_id)
|
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)
|
expect(topic.first_post.raw).to include(SiteSetting.site_description)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user