Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Refactor private accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 11, 2024
1 parent 765cfca commit f701a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rspec/core/formatters/exception_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ module Core
module Formatters
# @private
class ExceptionPresenter
attr_reader :exception, :example, :description, :message_color,
:detail_formatter, :extra_detail_formatter, :backtrace_formatter
private :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
attr_reader :exception, :example, :description

def initialize(exception, example, options={})
@exception = exception
Expand Down Expand Up @@ -101,6 +99,8 @@ def fully_formatted_lines(failure_number, colorizer)

private

attr_reader :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter

def final_exception(exception, previous=[])
cause = exception.cause

Expand Down

0 comments on commit f701a5d

Please sign in to comment.