FIX: Remove mentions filters from user and groups

Additionally return no data if disabled
This commit is contained in:
Robin Ward
2017-12-07 16:16:53 -05:00
parent fd99e1ef56
commit 74b9828731
8 changed files with 116 additions and 69 deletions

View File

@ -83,6 +83,12 @@ describe GroupsController do
expect(response).to be_success
expect(response.content_type).to eq('application/rss+xml')
end
it 'fails when disabled' do
SiteSetting.enable_mentions = false
get :mentions_feed, params: { group_id: group.name }, format: :rss
expect(response).not_to be_success
end
end
end