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

Commit 0e2a20d

Browse files
committed
Skip defining the reader
We define the reader as a method down the lines anyway. core_spec was issuing a warning that this method is redefined.
1 parent 2616deb commit 0e2a20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec/core/configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ def exclude_pattern=(value)
318318
# Report the times for the slowest examples (default: `false`).
319319
# Use this to specify the number of examples to include in the profile.
320320
# @return [Boolean]
321-
add_setting :profile_examples
321+
attr_writer :profile_examples
322+
define_predicate :profile_examples
322323

323324
# @macro add_setting
324325
# Run all examples if none match the configured filters
@@ -1044,7 +1045,6 @@ def reporter
10441045
#
10451046
# Defaults `profile_examples` to 10 examples when `@profile_examples` is
10461047
# `true`.
1047-
remove_method :profile_examples
10481048
def profile_examples
10491049
profile = value_for(:profile_examples) { @profile_examples }
10501050
if profile && !profile.is_a?(Integer)

0 commit comments

Comments
 (0)