[mocha-developer] mocking singletons
justin at spiceworks.com
Wed Aug 22 12:37:34 EDT 2007
On Aug 22, 2007, at 3:29 AM, Jonathan Leighton wrote:
> I'm not sure why you'd want to do that? You'd only need to "reload"
> Singleton when you are testing it, not in every single test. Maybe
> misunderstood something...
In every test where I was mocking my singleton I would have to add an
additional teardown method, since I'm retrofitting existing code to
mock the singleton this would require more work than I think is
Maybe I'm just misunderstanding the implementation?
More information about the mocha-developer