# File lib/rspec/core/example_group.rb, line 327 def self.run_before_all_hooks(example_group_instance) return if descendant_filtered_examples.empty? begin assign_before_all_ivars(superclass.before_all_ivars, example_group_instance) BeforeAllMemoizedHash.isolate_for_before_all(example_group_instance) do run_hook(:before, :all, example_group_instance) end ensure store_before_all_ivars(example_group_instance) end end