[rspec-devel] Meta specifications or spec. helpers available?

David Chelimsky dchelimsky at gmail.com
Sun Feb 18 10:54:45 EST 2007

On 2/18/07, Evgeny <evgeny.zislis at gmail.com> wrote:
> I am thinking about writing a plugin for rspec_on_rails for all the standard
> validate_x helpers in AR.
> For example:
>    @user.should_validate_presence_of :login
>    @user.should_validate_uniqueness_of :email

Cool. Please be sure to use the expectation matcher syntax if you do:

model.should validate_presence_of(:login)
model.should validate_uniqueness_of(:email)


More information about the rspec-devel mailing list