fixed the merge for the author convention
This commit is contained in:
parent
9b00b2c786
commit
35cabd469f
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue