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
`expect(run)` is not a valid target for `change` matcher unless one uses
the obscure implicit block expectation
subject(:run) { -> { do_something } }
Fixesrubocop#814
`expect(run)` is not a valid target for `change` matcher unless one uses
the obscure implicit block expectation
subject(:run) { -> { do_something } }
Fixesrubocop#814
The current cop is quite puzzling to me, especially its docs and specs.
Trying to reproduce the syntax, but it fails for me:
How does it work?
change
is a block matcher, but all the specs and examples use the value expectation target.The only idea is the use of implicit block expectation target, which is discouraged to use and for which we have an
RSpec/ImplicitBlockExpectation
.Should we change specs and examples?
The text was updated successfully, but these errors were encountered: