A fake filesystem. Use it in your tests.
Mocha is great. But when your library is all about manipulating the filesystem, you really want to test the behavior and not the implementation. If you're mocking and stubbing every call to FileUtils or File, you're tightly coupling your tests with the implementation. With FakeFS:
Documentationsee README file.
released on 22 July 2009
This entry (in part or in whole) was last reviewed on 28 June 2010.