Edit Spec file for edit post function