module RSpec::Mocks::RecursiveConstMethods
def get_const_defined_on(mod, const_name)
def get_const_defined_on(mod, const_name) if const_defined_on?(mod, const_name) return mod.const_get(const_name) end raise NameError, "uninitialized constant #{mod.name}::#{const_name}" end