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

Commit 9f53fec

Browse files
committed
Turn off rubocop rule for private reader
1 parent a0d1eac commit 9f53fec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rspec/core/formatters/exception_presenter.rb

+5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ module Formatters
1111
class ExceptionPresenter
1212
attr_reader :exception, :example, :description, :message_color,
1313
:detail_formatter, :extra_detail_formatter, :backtrace_formatter
14+
15+
# We want private attr_reader but that issues a warning on older rubies, refactor later
16+
#
17+
# rubocop:disable Style/AccessModifierDeclarations
1418
private :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
19+
# rubocop:enable Style/AccessModifierDeclarations
1520

1621
def initialize(exception, example, options={})
1722
@exception = exception

0 commit comments

Comments
 (0)