Fix notification spec to stub the right association.
This commit is contained in:
parent
f87ddffc64
commit
795f715833
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue