rubocop-rspec icon indicating copy to clipboard operation
rubocop-rspec copied to clipboard

Example Has Too Many Lines With `aggregate_failures`

Open jacoblockard99 opened this issue 3 years ago • 1 comments

I am trying to use RSpec aggregate_failures to speed up my specs, but rubocop-rspec complains that my example now has too many lines because I have 8 expectations. Is this desired behavior?

jacoblockard99 avatar Jan 08 '22 15:01 jacoblockard99

Thanks for reporting. This is somehow related to https://github.com/rubocop/rubocop-rspec/issues/379 I suggest adding IgnoreChained or MaxChained option to the cop. A PR is welcome.

pirj avatar Jan 08 '22 15:01 pirj

Closing as a duplicate. It’s unclear what cop was triggered. If that was the number if lines - just needs to be adjusted.

pirj avatar Feb 16 '24 12:02 pirj