need a rule to match x or more models
Reported by Silvia Pfeiffer | September 20th, 2010 @ 04:30 AM
It would be great to add this rule so we can also match, e.g. 5 or more models
find more than n models
Then(/^(\d+) or more #{capture_plural_factory} should exist(?:
with #{capture_fields})?$/) do |count, plural_factory, fields|
find_models(plural_factory.singularize, fields).size.should >=
count.to_i end
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Assign tickets to <b>Ian White</b>, so I get notified