Method: RSpec::Core::ExampleGroup.run_after_all_hooks

Defined in:
lib/rspec/core/example_group.rb

.run_after_all_hooks(example_group_instance) ⇒ Object



302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/rspec/core/example_group.rb', line 302

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}\n  occurred at \#{e.backtrace.first}\n\n  EOS\n  end\n\n  world.run_hook_filtered(:after, :all, self, example_group_instance)\nend\n"