mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Don't show the filter title on the default route
This commit is contained in:
parent
10b8eca9a6
commit
28864e74bc
2 changed files with 15 additions and 2 deletions
|
@ -11,6 +11,18 @@ describe ListController do
|
|||
SiteSetting.stubs(:top_menu).returns('latest,-video|new|unread|categories|category/beer')
|
||||
end
|
||||
|
||||
describe 'titles for crawler layout' do
|
||||
it 'has no title for the default URL' do
|
||||
xhr :get, Discourse.anonymous_filters[0], _escaped_fragment_: 'true'
|
||||
expect(assigns(:title)).to be_blank
|
||||
end
|
||||
|
||||
it 'has a title for non-default URLs' do
|
||||
xhr :get, Discourse.anonymous_filters[1], _escaped_fragment_: 'true'
|
||||
expect(assigns(:title)).to be_present
|
||||
end
|
||||
end
|
||||
|
||||
describe 'indexes' do
|
||||
|
||||
(Discourse.anonymous_filters - [:categories]).each do |filter|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue