lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-2.14.2 vs lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-2.15.0
- old
+ new
@@ -131,10 +131,10 @@
end
def count_up_nesting?(node, example_group)
example_group &&
(node.block_type? &&
- !allowed_groups.include?(node.method_name))
+ !allowed_groups.include?(node.method_name.to_s))
end
def message(nesting)
format(MSG, total: nesting, max: max_nesting)
end