diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 10:52:19 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 17:34:48 +0300 |
commit | 6185d12c183b539ea06ab3550b2c21045d169ca4 (patch) | |
tree | 9a5a8e50f8b0c6c64d69099d0374dc15ace808ee /lib/api/runner.rb | |
parent | e61f38d79eb85a7c601bd146d5b8e48a8b4418e5 (diff) |
Add missing specs
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r-- | lib/api/runner.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index ddcc0429de0..3fd0536dadd 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -241,16 +241,7 @@ module API get '/:id/artifacts' do job = authenticate_job! - artifacts_file = job.artifacts_file - unless artifacts_file.local_file? - return redirect_to job.artifacts_file.url - end - - unless artifacts_file.exists? - not_found! - end - - present_file!(artifacts_file.path, artifacts_file.filename) + present_artifacts!(job.artifacts_file) end end end |