Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 399817e57..d95fe6c5d 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -49,8 +49,9 @@ def set_up_friends
local_leia = Factory(:user_with_aspect, :username => "leia")
remote_raphael = Factory(:person, :diaspora_handle => "raphael@remote.net")
connect_users_with_aspects(local_luke, local_leia)
- local_leia.activate_contact(remote_raphael, local_leia.aspects.first)
- local_luke.activate_contact(remote_raphael, local_luke.aspects.first)
+
+ local_leia.contacts.create(:person => remote_raphael, :aspects => [local_leia.aspects.first])
+ local_luke.contacts.create(:person => remote_raphael, :aspects => [local_luke.aspects.first])
[local_luke, local_leia, remote_raphael]
end