Updated a test for no direction with empty feeds as rss, changed some private keyword...
[feedcatcher.git] / spec / controllers / feed_controller_spec.rb
index 8c065036f09830786c002b5f6027c1a752b94c57..c2b71a4459b823059b755b88659183c8c35406a4 100644 (file)
@@ -28,10 +28,15 @@ describe FeedController do
     let!(:feed_item2) { FactoryGirl.create(:feed_item, 
       feed_name: "test_feed", title: "item 2") }
     
-    it "redirects an emtpy feed to the index" do
+    it "redirects an emtpy html feed to the index" do
       get :show, feed_name: "empty_feed"
       expect(response).to redirect_to(index_path)
     end 
+
+    it "returns an emtpy rss document for an empty feed" do
+      get :show, feed_name: "empty_feed", format: "rss"
+      expect(response.status).to be(200)
+    end 
     
     it "responds successfully with an HTTP 200 status code" do
       get :show, feed_name: "test_feed"