rewrite spec to ruby