search for: classundertest

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

Did you mean: class_under_test
2007 Sep 21
5
Stubbing yielding methods
...case when I realised Executor#execute wouldn''t be called because the implementation of Collaborator#yielding_method is stubbed. This made me wonder if the Expectation#yields method should exist at all! In particular, in the block example, it feels odd because you are going from real code (ClassUnderTest) into mock code (mocked version of Collaborator) and back into real code (the block itself). I wonder if this is really sensible and/or useful. Has anybody got any thoughts? Thanks. -- James. http://blog.floehopper.org http://tumble.floehopper.org