[rspec-users] Another attempt for a succinct model validation DSL

David Chelimsky dchelimsky at gmail.com
Fri Jun 1 19:48:59 EDT 2007


On 6/1/07, Luis Lavena <luislavena at gmail.com> wrote:
> On 6/1/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > > On 6/1/07, Joseph Method <tristil at gmail.com> wrote:
> > >
> > > Well now we're getting much simpler. Instead of a whole new structure,
> > > why not just use a custom matcher?
> > >
> > > http://pastie.caboo.se/67069
> > >
> >
> > Brilliant!
> >
>
> I agree with aslak on this!
>
> Is descriptive, but not too verbose, is simple but not too cryptic.
>
> Translation: Looks good, are you willing to share it? ;-)
>
> (David and Aslak, I didn't found a example on how to implemente a
> custom matcher like Jospeh did, guess I missed a lot of RDocs :-P

Check this out - I think it's what you're looking for.

http://blog.davidchelimsky.net/articles/2007/02/18/custom-expectation-matchers

Cheers,
David

>
> --
> Luis Lavena
> Multimedia systems
> -
> Leaders are made, they are not born. They are made by hard effort,
> which is the price which all of us must pay to achieve any goal that
> is worthwhile.
> Vince Lombardi
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list