Closed zog closed 2 years ago
This seems to be a duplicate of #1821, that is fixed in #2878, and will be released in RSpec 4.
I encourage you to use the 4-0-dev
branch if you want to use it before the release.
Can you please confirm that 4-0-dev
fixes the issue?
I tested this on 4-0-dev
and it was fixed (using the snippet above) closing for now but please re open if you find an issue against 4-0-dev
Subject of the issue
Filters on
include_context
are ignored if passed in the wrong orderYour environment
Steps to reproduce
Expected behavior
The context should only be included on examples matching the filters
Actual behavior
The context is always included
Workaround
Inverting the filters order fixes the issue: