You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because RSpec::Parameterized support definition of where/with_them in any order it's not straightforward to disallow the mentioned behavior (with_them without any where definitions).
I see the following options:
Emit a warning whenever with_them is defined before any where definition.
Disallow definition of with_thembeforewhere definition. This is potentially a BREAKING CHANGE.
Related but out of scope
Disallow or warn about multiple where definitions. Currently, the latter wins without any warning.
Disallow or warn about multiple with_them definitions. I am unsure about the use-case.
The text was updated successfully, but these errors were encountered:
Proposed solution
The following code does not run any examples because
with_them
is defined a different example group and it does not anywhere
definitions.Refs https://gitlab.com/gitlab-org/gitlab/-/issues/430870
Proposed solution
Because
RSpec::Parameterized
support definition ofwhere
/with_them
in any order it's not straightforward to disallow the mentioned behavior (with_them
without anywhere
definitions).I see the following options:
with_them
is defined before anywhere
definition.with_them
beforewhere
definition. This is potentially a BREAKING CHANGE.Related but out of scope
where
definitions. Currently, the latter wins without any warning.with_them
definitions. I am unsure about the use-case.The text was updated successfully, but these errors were encountered: