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
Add a custom cop to check for the usage of let! in RSpec test setups. Background: we prefer to use the lazy-evaluated let and call it in an explicit before hook.
Add a custom cop to check for the usage of
let!
in RSpec test setups. Background: we prefer to use the lazy-evaluatedlet
and call it in an explicitbefore
hook.RSpec's
let!
does the same under the hood, but it's visually less obvious and tends to be overused by people.Example:
For adding a custom cop, see:
The text was updated successfully, but these errors were encountered: