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

Inherits:
Object
  • Object
show all
Defined in:
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



257
258
259
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 257

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