FEATURE: add RSS feed for badge pages

This commit is contained in:
Arpit Jalan
2017-08-09 01:51:42 +05:30
parent 49c6959dfc
commit bf2c35aa99
5 changed files with 36 additions and 1 deletions

View File

@ -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