From 4fba9a6989ee5c1a45b8938295f984a943d95f46 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sun, 6 Nov 2011 20:20:27 -0800 Subject: [PATCH] get rid of all pending specs except the one that is actually pending --- spec/models/user/querying_spec.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spec/models/user/querying_spec.rb b/spec/models/user/querying_spec.rb index 9baef3545..a304289c9 100644 --- a/spec/models/user/querying_spec.rb +++ b/spec/models/user/querying_spec.rb @@ -24,11 +24,14 @@ describe User do end it "contains public posts from people you're following" do - pending - dogs = bob.aspects.create(:name => "dogs") - bobs_public_post = Factory(:status_message, :text => "hello", :public => true, :author => bob.person) + # Alice follows Eve, but Eve does not follow Alice + alice.share_with(eve.person, @alices_aspect) - alice.visible_shareable_ids(Post).should include(bobs_public_post.id) + # Eve posts a public status message + eves_public_post = eve.post(:status_message, :text => "hello", :to => 'all', :public => true) + + # Alice should see it + alice.visible_shareable_ids(Post).should include(eves_public_post.id) end it "contains non-public posts from people who are following you" do @@ -167,8 +170,6 @@ describe User do alice.visible_shareable_ids(Post, @opts) end - - it "does not get repopulated" end end end