mfncooper/mockery — pull request #8 by ichernev (2012-04-12 14:26:18+00:00)
Title: Issue with cached module under test

When you require a module that is registerAllowable + unhook it can be cached beforehand, so all other stubs won't load properly, especially if this is the 'file-under-test'. So I remove this module from the cache just before calling the native require.