Fix invalid reference in linked work item spec
What does this MR do and why?
In feature specs, Gitlab.config.gitlab.url
is different from the actual
URL which includes a random port number. We need to pass in a reference
that uses the configured URL because our reference parser depends on
this to parse references.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Sample failure screenshot:
In specs, Gitlab.config.gitlab.url
(from gitlab.yml) is set to http://127.0.0.1
.
How to set up and validate locally
bin/rspec spec/features/projects/work_items/linked_work_items_spec.rb:92
Related to #438014 (closed)
Edited by Heinrich Lee Yu