Module: RSpec::Core::Hooks::RegistersGlobals

Defined in:
lib/rspec/core/hooks.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) register_globals(host, globals)



124
125
126
127
128
129
130
# File 'lib/rspec/core/hooks.rb', line 124

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