On doing this however, we lose the ExpectChange cop usefulness. I thought of creating a custom cop for it for my needs, as not_change is not standard. However, being it a common practice, I think that it would be nice for the ExpectChange cop to have an option where you'd explicit the negated matcher method.
On RSpec one can do:
But it is not possible to do
A common solution for this is defining a negated matcher for
change
:On doing this however, we lose the
ExpectChange
cop usefulness. I thought of creating a custom cop for it for my needs, asnot_change
is not standard. However, being it a common practice, I think that it would be nice for theExpectChange
cop to have an option where you'd explicit the negated matcher method.e.g.:
What do you think?