fixed edit for posts
added shoulda and test units for friendships