module RSpec::Core::Hooks::RegistersGlobals

def register_globals host, globals

def register_globals host, globals
  [:before, :after, :around].each do |position|
    process host, globals, position, :each
    next if position == :around # no around(:all) hooks
    process host, globals, position, :all
  end
end