require'spec_helper'describeComponentsHelperdodescribe'#gitlab_workhorse_version'docontext'without a Gitlab-Workhorse header'doit'shows the version from Gitlab::Workhorse.version'doexpect(helper.gitlab_workhorse_version).toeqGitlab::Workhorse.versionendendcontext'with a Gitlab-Workhorse header'dobeforedohelper.request.headers['Gitlab-Workhorse']='42.42.0-rc3'endit'shows the actual GitLab Workhorse version currently in use'doexpect(helper.gitlab_workhorse_version).toeq'42.42.0'endendendend