Hi all :)
Brought this issue to you from here:
https://github.com/rails/rails/issues/9362
Problem is, that rails validations as they are now have a dual nature, they
are something that:
1. helps keep the basic model data integrity (model concept, validate
uniqueness of email on user
On Feb 22, 2013, at 3:53 AM, dosadni...@gmail.com wrote:
https://gist.github.com/bbozo/5006180
This would allow us to handle highly specific controller-introduced
validators inside the controller and without adding unnecessary bloat in
other areas (usually in unit test factories and
If you're unit testing, just create a user bypassing validation:
User.create! :validate = false
That is if you even need a user object at all rather than a stub
To me validations are just fine in models (as in specifying which apply)
along with relationships to other entities. That's pretty