module RuboCop::RSpec::Node
def recursive_literal_or_const?
In various cops we want to regard const as literal although it's not
def recursive_literal_or_const? case type when :begin, :pair, *AST::Node::COMPOSITE_LITERALS children.compact.all?(&:recursive_literal_or_const?) else literal? || const_type? end end