switch gem spec to rails 4