Auto-Test Mundaine Validations
testing | (0)
When you're writing your spec files in RSpec, it is my belief that you should spec out even the validations that you add (validates_presence_of, validates_uniqueness_of, etc..). Even though these are core parts of Rails, your spec file should be able to be read by someone with little background in development and still get what is required of your application. Validating that a field is present and required is part of these specifications, so they should be there. However, testing to make sure something is always present isn't necessarily exciting, and you're basically doing the same thing over and over. Making ...