lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.9.1 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.10.0

- old
+ new

@@ -52,10 +52,10 @@ private def find_constant_usage(node, described_class, &block) yield(node) if node.eql?(described_class) - return unless node.instance_of?(Node) + return unless node.is_a?(Parser::AST::Node) return if scope_change?(node) || node.const_type? node.children.each do |child| find_constant_usage(child, described_class, &block) end