Created
November 7, 2011 04:09
-
-
Save sarahmei/1344155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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