From 98eabe097bc4a2ef8ffaac5e1196f4607e69cb72 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Mon, 25 Mar 2013 13:32:26 +0000 Subject: [PATCH] Fix test failure on redirect The "create" method was never being called. Removing the sender_id parameter fixed that. Routing problem, maybe? --- spec/controllers/notifications_controller_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index a1642b36f..549f5a7f4 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -88,8 +88,7 @@ describe NotificationsController do it "redirects to the recipient's profile" do @sender = FactoryGirl.create(:member) @recipient = FactoryGirl.create(:member) - post :create, { :notification => { :recipient_id => @recipient.id, - :sender_id => @sender.id}} + post :create, { :notification => { :recipient_id => @recipient.id } } response.should redirect_to(@recipient) end end