I was working on an application and needed to test the models, which is a pretty normal practice. I had to repeat validation tests for each field and each model resulting in lots of duplicated test code. So, I’m going to share my solution to this problem, which will help us avoid repeating similar validation tests for each model.
Continue reading %Quick Tip: DRY Up Your Model Validations Tests%
by Sarmad Sabih via SitePoint
No comments:
Post a Comment