Skip to content

Clear memoization of a stubbed object

Heinrich Lee Yu requested to merge 339979-fix-memoization-of-stub-in-spec into master

What does this MR do?

This fixes succeeding specs that call pipeline_creation_step_histogram by preventing the memoization of an RSpec stub into the class instance variable.

Related to #339979 (closed)

How to setup and validate locally (strongly suggested)

bin/rspec spec/lib/gitlab/ci/pipeline/metrics_spec.rb spec/lib/gitlab/ci/templates/Terraform/base_latest_gitlab_ci_yaml_spec.rb
Edited by Heinrich Lee Yu

Merge request reports

Loading