RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in