Joined July 2012
·
Achievements
29 Karma
0 Total ProTip Views
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
What about using shoulda matchers? They have a matcher which does essentially the same (validate an attribute can't be blank).
You could combine this with a Factory which has all default values and test if this Factory is valid: