Upgraded to rails4. All tests pass.