# File lib/rspec/mocks/stub_const.rb, line 271
      def self.ensure_registered_with_mocks_space
        return if defined?(@registered_with_mocks_space) && @registered_with_mocks_space
        ::RSpec::Mocks.space.add(self)
        @registered_with_mocks_space = true
      end