diff --git a/spec/models/user/connecting_spec.rb b/spec/models/user/connecting_spec.rb index 78d86934b..3f615fc31 100644 --- a/spec/models/user/connecting_spec.rb +++ b/spec/models/user/connecting_spec.rb @@ -131,7 +131,7 @@ describe Diaspora::UserModules::Connecting do it 'dispatches a request on a share-back' do eve.share_with(alice.person, eve.aspects.first) - contact = alice.contacts.new(:person => eve.person) + contact = alice.contact_for(eve.person) alice.contacts.stub!(:find_or_initialize_by_person_id).and_return(contact) contact.should_receive(:dispatch_request)