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

Commit 9c3404c

Browse files
committed
Refactor private accessor
1 parent 46d9016 commit 9c3404c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rspec/core/formatters/exception_presenter.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ module Core
99
module Formatters
1010
# @private
1111
class ExceptionPresenter
12-
attr_reader :exception, :example, :description, :message_color,
13-
:detail_formatter, :extra_detail_formatter, :backtrace_formatter
14-
private :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
12+
attr_reader :exception, :example, :description
1513

1614
def initialize(exception, example, options={})
1715
@exception = exception
@@ -101,6 +99,8 @@ def fully_formatted_lines(failure_number, colorizer)
10199

102100
private
103101

102+
attr_reader :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
103+
104104
def final_exception(exception, previous=[])
105105
cause = exception.cause
106106

0 commit comments

Comments
 (0)