This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Enhancements:
19
19
Specification] ( https://specifications.freedesktop.org/basedir-spec/latest/ )
20
20
for the global options file. ` ~/.rspec ` is still supported when no
21
21
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 )
22
24
23
25
Bug Fixes:
24
26
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def initialize(configuration=RSpec.configuration)
26
26
27
27
# @api public
28
28
#
29
- # Creates the list of filtered examples given current configuration .
29
+ # Prepares filters so that they apply to example groups when they run .
30
30
#
31
31
# 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.
33
34
def prepare_example_filtering
34
35
@filtered_examples = Hash . new do |hash , group |
35
36
hash [ group ] = filter_manager . prune ( group . examples )
You can’t perform that action at this time.
0 commit comments