[rspec-users] "have" matcher special case for owned collection with 1 item

David Chelimsky dchelimsky at gmail.com
Tue Dec 15 00:59:55 EST 2009

On Mon, Dec 14, 2009 at 3:57 PM, DeNigris Sean <sean at clipperadams.com> wrote:
> If I'm reading the docs right, the current implementation would be:  my_workspace.should have(1).documents
> Would it be hard to have it be:  my_workspace.should have(1).document
>                                                                                                                  ^
>                                                                                                              (no s)

Should be pretty simple. Why don't you file a feature request at
http://rspec.lighthouseapp.com? If you submit a patch w/ specs it'll
likely get in sooner than later.

> Sean DeNigris
> sean at clipperadams.com

More information about the rspec-users mailing list