lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.9.1 vs lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.10.0
- old
+ new
@@ -58,10 +58,10 @@
end
private
def subject_usage(node, &block)
- return unless node.instance_of?(Node)
+ return unless node.is_a?(Parser::AST::Node)
unnamed_subject(node, &block)
node.children.each do |child|
subject_usage(child, &block)