Fix specs on rails 3.2