How I test Rails validations?
A new article How I test Rails validations?.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
A new article How I test Rails validations?.
Comments
Thanks for sharing :)
You should checkout shoulda-matchers they will help you save some time with some validation tests.
ValidAtribute does exactly the type of tests you are running: https://github.com/bcardarella/valid_attribute
shoulda-matchers + 1 :)
Post a comment