Skip to content

Instantly share code, notes, and snippets.

@sarahmei
Created November 7, 2011 04:09
Show Gist options
  • Save sarahmei/1344155 to your computer and use it in GitHub Desktop.
Save sarahmei/1344155 to your computer and use it in GitHub Desktop.
it "contains public posts from people you're following" do
# Alice follows Eve, but Eve does not follow Alice
alice.contacts.create!(:person => eve.person, :aspects => [@alices_aspect], :receiving => true, :sharing => false)
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment