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

noreply at rubyforge.org noreply at rubyforge.org
Sun Dec 3 14:41:26 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: Closed
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)

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

>Comment By: David Chelimsky (dchelimsky)
Date: 2006-12-03 19:41

Message:
I had documented in rdoc but not in the website docs.

I want to move all the docs to rdoc, so for now we'll have to document in both places.

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

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2006-12-03 17:46

Message:
Is it documented? I didn't see any changes to doc/* when I svn upped.

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

Comment By: David Chelimsky (dchelimsky)
Date: 2006-12-03 17:29

Message:
Added in trunk (rev. 1206)

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

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