update travis and add specs for editing a post