This project is archived and is in readonly mode.
Changeset [8a92cdc8638d1f91aaa55fc47743a6210ad2181b] by Murray Steele
Revision 8a92cdc8638d1f91aaa55fc47743a6210ad2181b,
committed 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...
2 changed files
-
M
activerecord/test/cases/helper.rb -
M
activerecord/test/cases/validations_test.rb