Skip to content

Prevent mutated args from failing have_received expectations

gitlab-qa-bot requested to merge allow_mutation_with_have_received into main

Created by: JonRowe

This came up in rspec/rspec-expectations#1017 we need to duplicate args we capture for later replay onto expectations, in case they are mutated downstream. This seems like an "ok" way to fix the problem, but maybe someone can suggest a better one?

Merge request reports