[rspec-users] Another attempt for a succinct model validation DSL
Martin DeMello
martindemello at gmail.com
Mon Jun 4 09:05:45 EDT 2007
On 6/1/07, nicholas a. evans <nick at ekenosen.net> wrote:
>
> So here's my latest thought-experiment: http://pastie.caboo.se/66478
> And also, a simpler multi-field version: http://pastie.caboo.se/66510
>
> Notice how checking all three sides of each boundary is so simple and
> succinct that there is almost no excuse not to do so. Also, after
> noticing how similar the multi-field validation is to a fit-table or
> some of Brian Marick and zenspider's recent blog entries, I decided
> that further simplification was necessary/desirable. :-)
I really like the second one, far more than any of the proposed
alternatives (I think succinctness beats out rspecishness in this
case). I'd propose one modification:
http://pastie.caboo.se/67596
What say?
martin
More information about the rspec-users
mailing list