mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:41:24 +08:00
FEATURE: add RSS feed for badge pages
This commit is contained in:
@ -33,5 +33,11 @@ describe BadgesController do
|
||||
get :show, id: badge.id, format: :json
|
||||
expect(user_badge.notification.reload.read).to eq(true)
|
||||
end
|
||||
|
||||
it 'renders rss feed of a badge' do
|
||||
get :show, id: badge.id, format: :rss
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.content_type).to eq('application/rss+xml')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user