From f5de8f159e9fb79ed523fcb41c4b062eeaf3f811 Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Sun, 5 Feb 2017 10:57:14 +0100 Subject: Ensure the right content is served for the build artifacts API --- spec/requests/api/builds_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/requests/api') 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 -- cgit v1.2.1