Fix test failure on redirect

The "create" method was never being called. Removing the sender_id
parameter fixed that. Routing problem, maybe?
This commit is contained in:
Miles Gould
2013-03-25 13:32:26 +00:00
parent ac7b48406b
commit 98eabe097b

View File

@@ -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