Model's validation testing with type of validation
I have seen many times people do validation testing by comparing validation message, but instead if we use validation type ( symbolized key of locale ) to know which validation failed, it will make code easy and readable. http://blog.railsupgrade.com/2016/05/how-to-test-model-validations-with.html
Post a comment