aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides
diff options
context:
space:
mode:
authorMurray Steele <muz@h-lame.com>2008-12-19 13:27:34 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-19 13:37:50 +0000
commit8a92cdc8638d1f91aaa55fc47743a6210ad2181b (patch)
treef406e518354ec716f6a268747faaf514c5daf341 /railties/doc/guides
parentc044c079ab14487b4410874be2169ab4aa9b8a23 (diff)
downloadrails-8a92cdc8638d1f91aaa55fc47743a6210ad2181b.tar.gz
rails-8a92cdc8638d1f91aaa55fc47743a6210ad2181b.tar.bz2
rails-8a92cdc8638d1f91aaa55fc47743a6210ad2181b.zip
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>
Diffstat (limited to 'railties/doc/guides')
0 files changed, 0 insertions, 0 deletions