Module: RSpec::Core::SharedContext

Includes:
Hooks
Defined in:
lib/rspec/core/shared_context.rb

Instance Method Summary collapse

Methods included from Hooks

#after, #around, #before, #find_hook, #hooks, #run_hook, #run_hook!, #run_hook_filtered

Methods included from MetadataHashBuilder::Common

#build_metadata_hash_from

Instance Method Details

#included(group) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rspec/core/shared_context.rb', line 6

def included(group)
  [:before, :after].each do |type|
    [:all, :each].each do |scope|
      group.hooks[type][scope].concat hooks[type][scope]
    end
  end
end