[Rspec-devel] New proc.should_increment method

aslak hellesoy aslak.hellesoy at gmail.com
Fri Jul 14 00:58:28 EDT 2006


I just added a new little goodie:

arr = []
lambda { arr << "something" }.should_increment arr, :length

See http://rubyforge.org/tracker/?func=detail&atid=3152&aid=5055&group_id=797

A little bit on the state side of the fence (as opposed to
behavioural), but it's still a nice little feature methinks.

Aslak


More information about the Rspec-devel mailing list