cjohansen/Sinon.JS — pull request #93 by KonradHolowinski (2012-03-15 15:33:51+00:00)
Title: Fixes a problem with sandboxes not restoring stubs when a whole object was stubbed

Hi.

I've been working with the sandboxes lately and I've found an issue with restoring the stubbed objects when the sandbox.restore() is called.
The sandbox.restore() wasn't restoring the methods when a whole object was stubbed.

Fix included in pull request.
Tests included also.

I've chosen to add a wrapper on a stubbed object in collection and leave the actual stubs restore method intact.

It seems that a better solution would be to change the stubs restore method to restore all methods.
I need a verification if it was left as something that you didn't want to implement for some reason or if it is just missing.

I will provide a patch for restore method if we agree that's the solution we should go with (I think it is).