Skip to content

Fix helper name collision with rubocop helpers

What does this MR do and why?

The previously used subject name was colliding with a rubocop spec helper so changing the subject name fixes the issue.

Actually, a better solution would be to just include Rubocop helpers for rubocop related specs but it would require more time so here is a quick fix.

Steps to reproduce

The test failure can be reproduced by running the following test on local environment;

rspec spec/lib/gitlab/ci/parsers/sbom/cyclonedx_properties_spec.rb spec/rubocop/cop/api/base_spec.rb

Which should be fixed on this branch.

Related to RSpec Failure: spec/lib/gitlab/ci/parsers/sbom/... (#382438 - closed).

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