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:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-05 12:57:14 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-05 12:57:14 +0300
commitf5de8f159e9fb79ed523fcb41c4b062eeaf3f811 (patch)
tree73ee2f469f7f835ed822c373984f2e58776d36d0 /spec/requests
parent6e1d675de97122a966b16b7b732b2b145bbfc201 (diff)
Ensure the right content is served for the build artifacts API
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/builds_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb
index bd6e23ee769..acc2b163eaf 100644
--- a/spec/requests/api/builds_spec.rb
+++ b/spec/requests/api/builds_spec.rb
@@ -188,6 +188,7 @@ describe API::Builds, api: true do
it 'returns specific build artifacts' do
expect(response).to have_http_status(200)
expect(response.headers).to include(download_headers)
+ expect(response.body).to match_file(build.artifacts_file.file.file)
end
end