Fix notification spec to stub the right association.

This commit is contained in:
Sarah Mei 2011-01-15 14:20:25 -08:00
parent f87ddffc64
commit 795f715833

View file

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