lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-2.3.0 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-2.4.0
- old
+ new
@@ -201,10 +201,10 @@
# rubocop:enable InternalAffairs/NodeDestructuring
if !namespace
[name]
elsif namespace.const_type?
[*const_name(namespace), name]
- elsif namespace.lvar_type? || namespace.cbase_type?
+ elsif %i[lvar cbase send].include?(namespace.type)
[nil, name]
end
end
# @param node [RuboCop::AST::Node]