method

have_at_least

Importance_1
RSpec latest stable (1.2.8) - 1 note - Class: Spec::Matchers
have_at_least(n) public

Exactly like have() with >=.

Warning

should_not have_at_least is not supported

Show source
Register or log in to add new notes.
February 2, 2009
1 thank

usage

code

 @items = Item.find(:all)
 @items.should have_at_least(1).item