diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-09-06 17:26:16 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-09-06 17:26:16 +0200 |
commit | 8e97323d490129b666d01f76412b57f0ccb0c909 (patch) | |
tree | d4dce06c25ff8288113665ad142388db70bfd8ce /spec/requests/ci | |
parent | c87540ed46ba8756154f767be99f80be75c27a43 (diff) | |
download | gitlab-ce-8e97323d490129b666d01f76412b57f0ccb0c909.tar.gz |
Constants in specs
Diffstat (limited to 'spec/requests/ci')
-rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 29a194b31f6..9e390bea50b 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -253,7 +253,7 @@ describe Ci::API::API do end it "reject requests that did not go through gitlab-workhorse" do - headers.delete('Gitlab-Workhorse-Api-Request') + headers.delete(Gitlab::Workhorse::INTERNAL_API_REQUEST_HEADER) post authorize_url, { token: build.token }, headers expect(response).to have_http_status(500) end |