Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-05 12:16:49 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-05 12:16:49 +0300
commitdfb8fcbb651812d209d2f42baf6c2bb0e851c861 (patch)
tree5a41087e6808929315ca10ca5c9b3ea2c01a44b5 /spec/requests/api
parent83600e94262c1fadae98f1e0709f2430aaea03b7 (diff)
Use API helper to send artifact file through Workhorse
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/jobs_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb
index 00e761e8919..ba5cab3265a 100644
--- a/spec/requests/api/jobs_spec.rb
+++ b/spec/requests/api/jobs_spec.rb
@@ -215,10 +215,9 @@ describe API::Jobs do
get_artifact_file(artifact)
expect(response).to have_http_status(200)
- expect(response.body)
- .to include 'Gitlab-Workhorse-Send-Data', 'artifacts-entry'
expect(response.headers)
- .to include('Content-Type' => 'application/json')
+ .to include('Content-Type' => 'application/json',
+ 'Gitlab-Workhorse-Send-Data' => /artifacts-entry/)
end
end