+
+
+ describe "POST #feed" do
+ let!(:feed_item1) { FactoryGirl.create(:feed_item,
+ title: "item 1") }
+ let!(:feed_item2) { FactoryGirl.create(:feed_item,
+ title: "item 2") }
+ let!(:other_feed_item) { FactoryGirl.create(:feed_item,
+ feed_name: "other_test_feed", title: "item") }
+
+ it "redirects an update the feed path" do
+ post :update, FactoryGirl.attributes_for(:feed_item,
+ title: "item 1", description: "New description")
+ expect(response).to redirect_to(feed_path("test_feed"))
+ end
+
+ end