mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-09 08:17:58 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user