From 795f715833d0db86d951eb172a055d54b08299ef Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 15 Jan 2011 14:20:25 -0800 Subject: [PATCH] Fix notification spec to stub the right association. --- spec/models/notification_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 806b89479..d7243ae44 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -79,7 +79,7 @@ describe Notification do :recipient_id => @user.id} n = Notification.new(opts) - n.stub!(:user).and_return @user + n.stub!(:recipient).and_return @user @user.should_receive(:mail) n.email_the_user