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
I don't think our specs describe how we deal with most cases for a single-entry list. Would you like to discuss that for two combinations of styles and the presence of method calls in arguments?
The first line of this spec-code :
Triggered an offense of the form:
FactoryBot/CreateList: Prefer 1.times.map.
and was listed as correctable.
However when correcting it, it triggered a different rubocop as follows:
It seems that
1.times.map
is not the right solution to this, but instead it should be:Which seems to make both cops happy.
Any chance we could update the cop to do this instead?
The text was updated successfully, but these errors were encountered: