add spec test for updating post