This commit is contained in:
Kushal SM 2026-08-16 15:30:18 -07:00 committed by GitHub
commit 2843b1ecc5
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