lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.34.0 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.34.1

- old
+ new

@@ -164,13 +164,13 @@ # rubocop:disable InternalAffairs/NodeDestructuring namespace, name = *node # rubocop:enable InternalAffairs/NodeDestructuring if !namespace [name] - elsif namespace.cbase_type? - [nil, name] - else + elsif namespace.const_type? [*const_name(namespace), name] + elsif namespace.lvar_type? || namespace.cbase_type? + [nil, name] end end # @param node [RuboCop::AST::Node] # @return [Array<Symbol>]