lib/rubocop/cop/rspec/multiple_memoized_helpers.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/multiple_memoized_helpers.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -54,11 +54,10 @@ # let(:quuz) { {} } # end # end # # @example when disabling AllowSubject configuration - # # # rubocop.yml # # RSpec/MultipleMemoizedHelpers: # # AllowSubject: false # # # bad - `subject` counts towards memoized helpers @@ -70,11 +69,10 @@ # let(:qux) { [] } # let(:quux) { [] } # end # # @example with Max configuration - # # # rubocop.yml # # RSpec/MultipleMemoizedHelpers: # # Max: 1 # # # bad @@ -87,10 +85,10 @@ include ConfigurableMax include Variable MSG = 'Example group has too many memoized helpers [%<count>d/%<max>d]' - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless spec_group?(node) count = all_helpers(node).uniq.count return if count <= max