lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.30.0
- old
+ new
@@ -70,9 +70,10 @@
def_node_search :receive_message?, '(send nil? :receive ...)'
def expectation?(node)
return if all_matcher?(node)
+
receive_message?(node)
end
def on_block(node)
return unless example_group?(node)