Skip to content

Fix invalid reference in linked work item spec

Heinrich Lee Yu requested to merge 438014-fix-linked-work-item-spec into master

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:

work_item_linked_items_for_signed_in_user_links_a_new_item_with_work_item_url

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

Edited by Heinrich Lee Yu

Merge request reports