Fix specs for old Rails versions