Fix Rubocop offense for StrongMemoize

What does this MR do and why?

Contributes to #406761 (closed)

Fixes an offense for Rspec/UselessDynamicDefinition in strong_memoize_spec.rb. No user-facing changes.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading