[rspec-devel] [ rspec-Feature Requests-10539 ] Add class_type constraint for mocks

noreply at rubyforge.org noreply at rubyforge.org
Wed May 2 22:30:26 EDT 2007


Feature Requests item #10539, was opened at 2007-05-02 19:30
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=10539&group_id=797

Category: mock module
Group: None
Status: Open
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: Add class_type constraint for mocks

Initial Comment:
I know that we are all supposed to think Duck Typing :), but sometimes its more convenient and useful to have a constraint on a Class type.

Maybe we can add a class_type method to be used in addition to the duck_type method.



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

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


More information about the rspec-devel mailing list