add end to spec do block fixing syntax error