lib/rubocop/cop/mixin/minitest_exploration_helpers.rb in rubocop-minitest-0.33.0 vs lib/rubocop/cop/mixin/minitest_exploration_helpers.rb in rubocop-minitest-0.34.0
- old
+ new
@@ -98,9 +98,10 @@
assertion_method?(send_node)
end
end
def assertion_method?(node)
+ return assertion_method?(node.expression) if node.assignment?
return false if !node.send_type? && !node.block_type? && !node.numblock_type?
ASSERTION_PREFIXES.any? do |prefix|
method_name = node.method_name