FEATURE: add short_site_description setting to be included in title tag on homepage

This commit is contained in:
Maja Komel
2018-12-12 11:46:14 +01:00
parent 793f1274d1
commit dbbadb5c35
7 changed files with 40 additions and 2 deletions

View File

@ -37,6 +37,18 @@ describe CategoriesController do
expect(json['topic_list_latest']).to include(%{"more_topics_url":"/latest"})
end
end
it "Shows correct title if category list is set for homepage" do
SiteSetting.top_menu = "categories|latest"
get "/"
expect(response.body).to have_tag "title", text: "Discourse"
SiteSetting.short_site_description = "Official community"
get "/"
expect(response.body).to have_tag "title", text: "Discourse - Official community"
end
end
context 'extensibility event' do