lib/rubocop/cop/rspec/repeated_subject_call.rb in rubocop-rspec-2.29.1 vs lib/rubocop/cop/rspec/repeated_subject_call.rb in rubocop-rspec-2.29.2
- old
+ new
@@ -70,9 +70,10 @@
private
def detect_offense(subject_node)
return if subject_node.chained?
+ return if subject_node.parent.send_type?
return unless (block_node = expect_block(subject_node))
add_offense(block_node)
end