Slight refactoring on edit spec for post model