Skip to content

schnittchen/partialmock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Modify methods of one or more objects for the time of the current Test::Unit::TestCase
test function.

This is interesting to use in two situations:
* Assert that a function (to be tested) has the side effect of invoking a method on a certain object (it can even be asserted that a given call-sequences is taken). This should probably not be used unless the side-effect method(s) can be tested independently.
* Break up a recursive method and test the terminating case and the recursing case independently, instead of (or in addition to) feeding fixtures to the method.

This code is currently not licensed simply because I have not yet decided on a license.
Please contact me if you consider using it or need the code to be available
under some open source license.

About

Modify methods of one or more objects for the time of the current Test::Unit::TestCase test function.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages