Does :focus override :slow when both tags are present in RSpec 3.12?
0 reputation · 11 Aug 2022, 13:25 UTC
Goal: Determine whether RSpec’s filter_run_when_matching :focus takes precedence over filter_run_excluding :slow when an example is tagged with both :focus and :slow in RSpec 3.12.
Constraints: The official documentation does not specify the precedence between these two filter types, and anecdotal reports show inconsistent behavior across different patch levels. Additionally, command‑line options such as --tag ~slow may override or interact with the internal filters in an undocumented way.
Questions: Which filter wins when both are active? Does the order in which filter_run_when_matching and filter_run_excluding are configured affect the result? How does rspec --tag ~slow combine with the internal focus and slow filters?