# File lib/rspec/core/example_group.rb, line 304
      def self.run_after_all_hooks(example_group_instance)
        return if descendant_filtered_examples.empty?
        assign_before_all_ivars(before_all_ivars, example_group_instance)

        begin
          run_hook!(:after, :all, example_group_instance)
        rescue => e
          # TODO: come up with a better solution for this.
          RSpec.configuration.reporter.message "\nAn error occurred in an after(:all) hook.\n\#{e.class}: \#{e.message}\noccurred at \#{e.backtrace.first}\n\n"
        end

        world.run_hook_filtered(:after, :all, self, example_group_instance)
      end