Class: RSpec::Core::Formatters::ExceptionPresenter::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb

Overview

Configuring the ‘ExceptionPresenter` with the right set of options to handle pending vs failed vs skipped and aggregated (or not) failures is not simple. This class takes care of building an appropriate `ExceptionPresenter` for the provided example.

Defined Under Namespace

Modules: EmptyBacktraceFormatter Classes: CommonBacktraceTruncater

Instance Method Summary collapse

Instance Method Details

#buildObject



285
286
287
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb', line 285

def build
  ExceptionPresenter.new(@exception, @example, options)
end