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

Joseph Method tristil at gmail.com
Fri Jun 1 13:19:28 EDT 2007

Well, this is what I was thinking: http://pastie.caboo.se/66940

> Thoughts?

Honestly, the extra depth is a big turn-off for me.

> Is it an evil or difficult thing to repurpose "it" to my
> own dubious ends inside the examples?  I really like the idea of "it"
> simply returning the result of the block that was previously passed to
> "given"
> --
> Nick

It's not evil, but I don't know how difficult it is. If it's not
difficult at all, I don't see why it can't be

it.should_validate :password do

-J. Method

More information about the rspec-users mailing list