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

Commit

Permalink
Turn off rubocop rule for private reader
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 11, 2024
1 parent a0d1eac commit 9f53fec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rspec/core/formatters/exception_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ module Formatters
class ExceptionPresenter
attr_reader :exception, :example, :description, :message_color,
:detail_formatter, :extra_detail_formatter, :backtrace_formatter

# We want private attr_reader but that issues a warning on older rubies, refactor later
#
# rubocop:disable Style/AccessModifierDeclarations
private :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
# rubocop:enable Style/AccessModifierDeclarations

def initialize(exception, example, options={})
@exception = exception
Expand Down

0 comments on commit 9f53fec

Please sign in to comment.