search for: a_tail

Displaying 1 result from an estimated 1 matches for "a_tail".

Did you mean: j_tail
2007 Apr 16
0
Fwd: ANN: FlexMock 0.6.0 Released
...vidual methods in existing, non-mock objects. * The ability to cause classes to instantiate test instances (instead of real instances) for the duration of a test. === Example Suppose you had a Dog object that wagged a tail when it was happy. Something like this: class Dog def initialize(a_tail) @tail = a_tail end def happy @tail.wag end end To test the +Dog+ class without a real +Tail+ object (perhaps because real +Tail+ objects activate servos in some robotic equipment), you can do something like this: require ''test/unit'' require ''f...