Displaying 1 result from an estimated 1 matches for "method_on_object".
2007 May 03
0
predicate matchers
Hey all,
If any of you are using the new predicate_matchers feature, I just
committed a change to it in trunk. See
http://rubyforge.org/tracker/index.php?func=detail&aid=10542&group_id=797&atid=3152
for more details, but the high level is that instead of this:
predicate_matchers[:method_on_object] = :method_in_spec
It now (as of rev 1898 - soon to be released in 0.9.2) does this:
predicate_matchers[:method_in_spec] = :method_on_object
I (and I''m apparently not alone) think this reads better. Here''s an example:
predicate_matchers[:eat] = :eats?
sheep.should eat(...