[rspec-users] Another attempt for a succinct model validation DSL
dchelimsky at gmail.com
Sat Jun 2 00:19:20 EDT 2007
On 6/1/07, Luis Lavena <luislavena at gmail.com> wrote:
> On 6/1/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > >
> > > (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
> Thanks David, but I'm already a subscriber of your blog ;-)
> What I really meant to say is the .as(:attribute).because("message")
> part of the custom matcher I didn't fully understand :-P
> Are examples of that in the repository?
Take a look at lib/spec/matchers/change.rb. That should give you some direction.
> 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
More information about the rspec-users