mfncooper/mockery — pull request #9 by ichernev (2012-04-20 19:29:19+00:00)
Title: Implemented resolving of relative module names to absolute paths

Specifying files to mock by a relative name is not enough if you require the same file multiple times from different directories. So I added an option to mockery to convert all relative filenames to absolute ones, based on the test file for example. There are two advantages of doing so:

1. You can specify the filenames to mock, relative to the test file -- i.e the same way requires work, so its a no-brainer
2. Requiring the same file from multiple locations would return the given mock, because all filenames are converted to absolute ones when requiring