class RSpec::Core::SuiteHookContext

@private Provides an execution context for before/after :suite hooks.

Public Class Methods

Calls superclass method RSpec::Core::Example::new
# File rspec-core/lib/rspec/core/example.rb, line 652
def initialize(hook_description, reporter)
  super(AnonymousExampleGroup, hook_description, {})
  @example_group_instance = AnonymousExampleGroup.new
  @reporter = reporter
end

Public Instance Methods

rubocop:disable Naming/AccessorMethodName

# File rspec-core/lib/rspec/core/example.rb, line 659
def set_exception(exception)
  reporter.notify_non_example_exception(exception, "An error occurred in #{description}.")
  RSpec.world.wants_to_quit = true
end