RSpec: Infer migration filename also for spec files with schema version
What does this MR do and why?
Prior this MR you had to pass a filename to require_migration!
in cases where your spec included "schema version" in its filename.
With this MR the helper method is able to infer migration filename even in these scenarios.
Caveats
Heads-up! Due to typos we cannot apply the change to the following files which caused a
-
spec/migrations/cleanup_move_container_registry_enabled_to_project_features_spec.rb
- https://gitlab.com/gitlab-org/gitlab/-/jobs/1679913313 -
spec/migrations/fix_projects_without_prometheus_services_spec.rb
- https://gitlab.com/gitlab-org/gitlab/-/jobs/1679913068 -
spec/migrations/remove_duplicate_labels_from_groups_spec.rb
- https://gitlab.com/gitlab-org/gitlab/-/jobs/1679913052
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen