Refactor ratings spec