changed syntax of badges controller spec [ci skip]