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
This PR is improves documentation for `RSpec/ChangeByZero`.
Since it isn’t mentioned that we define our own negation matcher
for `not_change` for the compound expectations case,
I felt it would be a bit confusing,
so I'll explicitly mention that define a negation matcher
for the good case.
```ruby
define_negated_matcher :not_change, :change
expect { run }
.to not_change(Foo, :bar)
.and not_change(Foo, :baz)
expect { run }
.to not_change { Foo.bar }
.and not_change { Foo.baz }
```
0 commit comments