lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-3.0.2 vs lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-3.0.3

- old
+ new

@@ -90,19 +90,20 @@ # end # end # end # class NestedGroups < Base - include ConfigurableMax include TopLevelGroup MSG = 'Maximum example group nesting exceeded [%<total>d/%<max>d].' DEPRECATED_MAX_KEY = 'MaxNesting' DEPRECATION_WARNING = "Configuration key `#{DEPRECATED_MAX_KEY}` for #{cop_name} is " \ 'deprecated in favor of `Max`. Please use that instead.' + + exclude_limit 'Max' def on_top_level_group(node) find_nested_example_groups(node) do |example_group, nesting| self.max = nesting add_offense(