Quantcast
Channel: Code Snippets – Chris Bloom
Viewing all articles
Browse latest Browse all 10

Testing model validations in rspec the short and sweet way

$
0
0
There seems to be a divide in the Rails/TDD community over whether you should bother testing your model validations. On the one hand, it’s silly to just retest what the Rails core team has hopefully already tested — that validations work. On the other hand, I want to make sure that my models only accept […]

Viewing all articles
Browse latest Browse all 10

Trending Articles