[rspec-devel] [ rspec-Feature Requests-7025 ] should_change should accept a block

noreply at rubyforge.org noreply at rubyforge.org
Sun Dec 3 12:23:18 EST 2006


Feature Requests item #7025, was opened at 2006-12-03 17:23
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=7025&group_id=797

Category: expectation module
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: David Chelimsky (dchelimsky)
Summary: should_change should accept a block

Initial Comment:
In addition to this:

lambda { @team.add player }.should_change(@team.players, :size).by(1)

I want to be able to do this:

lambda { @team.add player }.should_change{@team.players.size}.by(1)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=7025&group_id=797


More information about the rspec-devel mailing list