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
Modifying the code like the below solves the offense, but I feel this one is less readable than the original one. (Especially when the name of each argument varies a lot.)
Your point is valid. Then it seems better to disable the cop for each test case by case rather than adding another feature to the cop, right? (Offenses like above may be considered a signal of the need for refactoring, though.)
I'm open to consider introduction of an option given an example that would not contribute to the example readability while breaking the default line length constraint.
RSpec/ExampleLength
detects this code as an offense.Modifying the code like the below solves the offense, but I feel this one is less readable than the original one. (Especially when the name of each argument varies a lot.)
Should we add another option, or is there any way to avoid the offense by some configuration?
In the discussion where
CountAsOne
was introduced, this opinion makes sense to me.The text was updated successfully, but these errors were encountered: