Fix specs for activerecord 4.0