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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) register_globals(host, globals)



105
106
107
108
109
110
111
# File 'lib/rspec/core/hooks.rb', line 105

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