Fixed deprecated message in rake spec tests