mock_instance_method and mock_class_method is scoped to wherever it was called instead of being scoped to the instance or class. I don’t think this will break any code, but if it does I will find a way to add a setting to get the old functionality.