refactoring find_post method and specs for the same