Rails 4 compatibility in specs