This commit is contained in:
Kushal SM 2026-06-27 18:17:28 +02:00 committed by GitHub
commit 3a15af4a18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 1 deletions

View file

@ -49,4 +49,20 @@ describe ConferencesController do
end
end
describe 'GET #feed' do
render_views
it 'returns RSS feed successfully' do
get :feed, format: :rss
expect(response.response_code).to eq(200)
expect(response.content_type).to include('application/rss+xml')
end
it 'includes conference data in the feed' do
conference # trigger let
get :feed, format: :rss
expect(response.body).to include(conference.title)
end
end
end