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

Commit c5ce1b2

Browse files
committed
Follow up to #2552.
1 parent 30d2110 commit c5ce1b2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Enhancements:
1919
Specification](https://specifications.freedesktop.org/basedir-spec/latest/)
2020
for the global options file. `~/.rspec` is still supported when no
2121
options file is found in `$XDG_CONFIG_HOME/rspec/options` (Magnus Bergmark, #2538)
22+
* Extract `RSpec.world.prepare_example_filtering` that sets up the
23+
example filtering for custom RSpec runners. (Oleg Pudeyev, #2552)
2224

2325
Bug Fixes:
2426

lib/rspec/core/world.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ def initialize(configuration=RSpec.configuration)
2626

2727
# @api public
2828
#
29-
# Creates the list of filtered examples given current configuration.
29+
# Prepares filters so that they apply to example groups when they run.
3030
#
3131
# This is a separate method so that filters can be modified/replaced and
32-
# examples refiltered during a process's lifetime.
32+
# examples refiltered during a process's lifetime, which can be useful for
33+
# a custom runner.
3334
def prepare_example_filtering
3435
@filtered_examples = Hash.new do |hash, group|
3536
hash[group] = filter_manager.prune(group.examples)

0 commit comments

Comments
 (0)