Fixed specs for rails version compatibility