I'm working on new feature for ruby's test/unit tool and I define Test::Unit::TestCase.const_missing. It does some stuff then calls old const_missing like the following (pseudo code):
orig = self.method(:const_missing)
def const_missing(name)
# do some stuff
orig.call(name)
end
This broke error_highlight tests for missing constant, it wasn't highlighting anymore. I'm not sure if this is fixable or not.