Test with rails 3.1.0 on travis ci