diff --git a/spec/integration/receiving_spec.rb b/spec/integration/receiving_spec.rb index 7b1ee2a3e..724594b68 100644 --- a/spec/integration/receiving_spec.rb +++ b/spec/integration/receiving_spec.rb @@ -91,7 +91,7 @@ describe 'a user receives a post' do Notification.should_receive(:notify).with(@user1, anything(), @remote_person) - @sm = Factory.build(:status_message, :message => "hello @{#{@user1.name}; #{@user1.diaspora_handle}}", :diaspora_handle => @remote_person.diaspora_handle, :person => @remote_person) + @sm = Factory.build(:status_message, :message => "hello @{#{@user1.name}; #{@user1.diaspora_handle}}", :diaspora_handle => @remote_person.diaspora_handle, :author => @remote_person) @sm.stub!(:socket_to_user) @sm.save diff --git a/spec/models/mention_spec.rb b/spec/models/mention_spec.rb index d4ac9e9f7..4b0a7f76b 100644 --- a/spec/models/mention_spec.rb +++ b/spec/models/mention_spec.rb @@ -16,7 +16,7 @@ describe Mention do end it 'notifies the person being mentioned' do - Notification.should_receive(:notify).with(@mentioned_user, anything(), @sm.person) + Notification.should_receive(:notify).with(@mentioned_user, anything(), @sm.author) @sm.receive(@mentioned_user, @mentioned_user.person) end