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

0 views
Skip to first unread message

DeNigris Sean

unread,
Dec 14, 2009, 4:57:36 PM12/14/09
to rspec...@rubyforge.org
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)
Sean DeNigris
se...@clipperadams.com

_______________________________________________
rspec-users mailing list
rspec...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

David Chelimsky

unread,
Dec 15, 2009, 12:59:55 AM12/15/09
to rspec-users
On Mon, Dec 14, 2009 at 3:57 PM, DeNigris Sean <se...@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.

Reply all
Reply to author
Forward
0 new messages