Displaying 1 result from an estimated 1 matches for "describe_model_attribute".
2008 Aug 25
21
How much test data to use in specs
I''m not sure how much test data I should be using in my specs. I''m
writing specs for the Property model in my Rails app. Its "address"
attribute is going to be validated with this regex:
/\A\d+[a-z]? [-'', a-z]{2,128}\Z/i
At the moment, my plan is to spec out the following possibilities. A
property is invalid if its address:
1) doesn''t begin with