class RSpec::Core::Configuration
def configure_example(example)
- Private: -
def configure_example(example) # We replace the metadata so that SharedExampleGroupModule#included # has access to the example's metadata[:location]. example.example_group_instance.singleton_class.with_replaced_metadata(example.metadata) do @include_modules.items_for(example.metadata).each do |mod| safe_include(mod, example.example_group_instance.singleton_class) end end end