From: Michal Kwiatkowski Date: 2006-12-24T12:00:07+09:00 Subject: Reverting module changes Hi, I want to mock standard Kernel.system with my own method and then revert back to the original version. I was able to do the former, but not the latter. Currently I'm overwriting Kernel.system method definition with: def system_should_return what Kernel.module_eval "def system(*args) #{what.inspect} end" end I don't a have idea how going back to the original state can be done. Thanks in advance for any help on this. Cheers, mk