Is there any need to write unit test cases for model validation when
validation is implemented by a single rails validate_* line in the
e.g. “validates_presence_of :email”.
Conservatively I would say ‘yes’ however applying the following
below I’d actually re-consider and say ‘no’:
 Any test should clearly have a clear objective in terms of what it
trying to test. In this case what is really being tested in the rails
framework “validates_” command and associated rails framework that
this. If you take this as already been tested as part of the Rails
process then there is no reason to focus re-testing this. In other
why write a test for a situation for which you wrote no code yourself.
 Any DRY? - By writing test cases you are really breaking the DRY
repeat yourself content) by everytime you put a simple rails framework
(i.e. a validates_* in a model) you have to put extra straight-forward
in test cases. Also would such test cases focused at testing such Rails
commands already be present in the rails code base.
Comments? What’s best practice here. Should we be writing test cases