This project is archived and is in readonly mode.
Changeset [8a92cdc8638d1f91aaa55fc47743a6210ad2181b] by Murray Steele
December 19th, 2008 @ 01:37 PM
Add a repair_helper to repair changes to the validations inside validations_test.rb [#674 state:resolved]
Many of the tests in validations_test would add a new validation to models. However, only Topic was being reset with a fairly aggressive clearing of all validations. None of the other models being used however were recieving the same treatment. Now we use repair_validations(Topic) for the whole test case because most test cases use Topic and then the block form of repair_validations(<other_models>) inside any tests that use other models.
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
Committed by Murray Steele
- M activerecord/test/cases/helper.rb
- M activerecord/test/cases/validations_test.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>