Skip to content

Instantly share code, notes, and snippets.

@pierrel
Created August 10, 2011 22:52
Show Gist options
  • Select an option

  • Save pierrel/1138497 to your computer and use it in GitHub Desktop.

Select an option

Save pierrel/1138497 to your computer and use it in GitHub Desktop.
it "should show sorted stream if updated by author after reshare" do
# someone reshares
SocialPost.make :postable => @mac_pics, :user => @tim, :postable_type => "Story", :network_name => SocialUser::BLURB
# then the author updates, causing the original authored socialpost to update, pushing it to the "back"
@mac_pics.title = @mac_pics.title + "_"
@mac_pics.save!
debugger
@tony.story_stream.should == [@john_pics, @people_pics, @dog_pics, @mac_pics]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment