DeNigris Sean
2009-Dec-14 21:57 UTC
[rspec-users] "have" matcher special case for owned collection with 1 item
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 sean at clipperadams.com
David Chelimsky
2009-Dec-15 05:59 UTC
[rspec-users] "have" matcher special case for owned collection with 1 item
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