For a particular test, I want to change the return value of a class method.
I can get the correct behavior by calling MyClass.expects(:method).returns(:myvalue). How can I stop this behavior once I'm done with the test?
There's an unstub
method in Mocha, but it appears to only work on instance methods, not class methods.