From 2c9a1e3a43ba642da1066930dcbe60ab5b0c5ad7 Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Tue, 24 Aug 2010 13:47:58 -0700 Subject: [PATCH] added wall spec --- spec/models/person_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index ad4d00e2be..64869df86e 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -144,5 +144,18 @@ describe Person do it 'should search by email exactly' do Person.by_webfinger(@friend_one.email).should == @friend_one end + + describe 'wall posting' do + it 'should be able to post on another persons wall' do + + #user2 is in user's group, user is in group2 on user + friend_users(@user, @group, @user2, @group2) + + @user.person.post_to_wall(:person => @user2.person, :message => "youve got a great smile") + @user.person.wall_posts.count.should == 1 + + end + end + end end -- GitLab