RSS for topics in a category

Creates a new route for category RSS
This commit is contained in:
Alexander
2013-02-27 19:36:12 -08:00
parent 0c8c41b131
commit fd240c1967
11 changed files with 85 additions and 12 deletions

View File

@@ -43,6 +43,14 @@ describe ListController do
it { should respond_with(:success) }
end
describe 'feed' do
it 'renders RSS' do
get :category_feed, category: category.slug, format: :rss
response.should be_success
response.content_type.should == 'application/rss+xml'
end
end
end
context 'uncategorized' do
@@ -59,8 +67,6 @@ describe ListController do
end
end
context 'favorited' do