hack so spec works with rails 4