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
+6
View File
@@ -51,6 +51,12 @@ describe TopicQuery do
it "returns nothing when filtering by another category" do
topic_query.list_category(Fabricate(:category, name: 'new cat')).topics.should be_blank
end
describe '#list_new_in_category' do
it 'returns only the categorized topic' do
topic_query.list_new_in_category(category).topics.should == [topic_in_cat]
end
end
end
context 'unread / read topics' do