lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -87,17 +87,16 @@
#
class NestedGroups < Cop
include ConfigurableMax
include RuboCop::RSpec::TopLevelDescribe
- MSG = 'Maximum example group nesting exceeded ' \
- '[%<total>d/%<max>d].'.freeze
+ MSG = 'Maximum example group nesting exceeded [%<total>d/%<max>d].'
- DEPRECATED_MAX_KEY = 'MaxNesting'.freeze
+ DEPRECATED_MAX_KEY = 'MaxNesting'
DEPRECATION_WARNING =
"Configuration key `#{DEPRECATED_MAX_KEY}` for #{cop_name} is " \
- 'deprecated in favor of `Max`. Please use that instead.'.freeze
+ 'deprecated in favor of `Max`. Please use that instead.'
def_node_search :find_contexts, ExampleGroups::ALL.block_pattern
def on_top_level_describe(node, _args)
find_nested_contexts(node.parent) do |context, nesting|