summaryrefslogtreecommitdiff
path: root/spec/requests/ci
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-09-06 17:26:16 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-09-06 17:26:16 +0200
commit8e97323d490129b666d01f76412b57f0ccb0c909 (patch)
treed4dce06c25ff8288113665ad142388db70bfd8ce /spec/requests/ci
parentc87540ed46ba8756154f767be99f80be75c27a43 (diff)
downloadgitlab-ce-8e97323d490129b666d01f76412b57f0ccb0c909.tar.gz
Constants in specs
Diffstat (limited to 'spec/requests/ci')
-rw-r--r--spec/requests/ci/api/builds_spec.rb2
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