diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 09:52:19 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 16:34:48 +0200 |
commit | 6185d12c183b539ea06ab3550b2c21045d169ca4 (patch) | |
tree | 9a5a8e50f8b0c6c64d69099d0374dc15ace808ee /lib/ci | |
parent | e61f38d79eb85a7c601bd146d5b8e48a8b4418e5 (diff) | |
download | gitlab-ce-6185d12c183b539ea06ab3550b2c21045d169ca4.tar.gz |
Add missing specs
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/builds.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index 0f2044a54b4..2285ef241d7 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -187,14 +187,14 @@ module Ci build = authenticate_build! artifacts_file = build.artifacts_file - unless artifacts_file.local_file? - return redirect_to build.artifacts_file.url - end - unless artifacts_file.exists? not_found! end + unless artifacts_file.file_storage? + return redirect_to build.artifacts_file.url + end + present_file!(artifacts_file.path, artifacts_file.filename) end |