floehopper/mocha — pull request #75 by floehopper (2012-04-13 17:16:58+00:00)
Title: Store original method rather than using alias_method

Using `alias_method` was always a bit of a kludge. Instead we can store the definition of the original method in an instance variable and then re-define it on un-stubbing if necessary.

This should fix #41, #47, #74 and all tests should now pass on both Ruby 1.8.7 and 1.9.3.

I suspect there may be issues with older versions of the `test-unit` and `minitest` gems but those can wait for now.