mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FEATURE: add group posts and mentions RSS
This commit is contained in:
parent
54445f21c1
commit
bd83cf7f4c
4 changed files with 40 additions and 0 deletions
|
@ -228,4 +228,20 @@ describe GroupsController do
|
|||
|
||||
end
|
||||
|
||||
describe '.posts_feed' do
|
||||
it 'renders RSS' do
|
||||
get :posts_feed, group_id: group.name, format: :rss
|
||||
expect(response).to be_success
|
||||
expect(response.content_type).to eq('application/rss+xml')
|
||||
end
|
||||
end
|
||||
|
||||
describe '.mentions_feed' do
|
||||
it 'renders RSS' do
|
||||
get :mentions_feed, group_id: group.name, format: :rss
|
||||
expect(response).to be_success
|
||||
expect(response.content_type).to eq('application/rss+xml')
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue