Skip to content

Avoid stubbing Gitlab.config.gitlab.host in the tests

We have this in some of the tests:

allow(Gitlab.config.gitlab).to receive(:host).and_return('www.example.com')

This feels like something wasn't properly setup. I tried to put this but it doesn't work: (test still failed)

Capybara.default_host = "http://#{Gitlab.config.gitlab.host}"

The following discussion from !17676 (merged) should be addressed: