def run(example_group_instance, reporter)
@example_group_instance = example_group_instance
@example_group_instance.example = self
start(reporter)
begin
unless pending
with_pending_capture do
with_around_hooks do
begin
run_before_each
@in_block = true
@example_group_instance.instance_eval(&@example_block)
rescue Exception => e
set_exception(e)
ensure
@in_block = false
run_after_each
end
end
end
end
rescue Exception => e
set_exception(e)
ensure
@example_group_instance.example = nil
assign_auto_description
end
finish(reporter)
end