rails/rails — pull request #9363 by wangjohn (2013-02-21 18:49:03+00:00)
Title: Fixed the repair_validations helper method.

The repair_validations helper was not working correctly before because it only cleared the validations that created :validate callbacks. This didn't include the validations created by validates_with, so I've added a method to clear these validations as well.

The validates_with associations are all associations that are created using: validates_uniqueness_of(), validates_presence_of(), etc. and other custom validations.

Thankfully, the fixing the repair infrastructure didn't make any of the tests fail.