diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-15 13:06:49 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-28 11:32:34 +0100 |
commit | 34f57b462bc14ad194cf890a4585d403bdbde55c (patch) | |
tree | 6edd502ba8b3c0bca4e8b77492ac0936d3c52cf2 /lib/api/helpers/runner.rb | |
parent | 8e8eb97861a8a93625590274af8382e9333cbf91 (diff) | |
download | gitlab-ce-34f57b462bc14ad194cf890a4585d403bdbde55c.tar.gz |
Fix current feature related specs
Diffstat (limited to 'lib/api/helpers/runner.rb')
-rw-r--r-- | lib/api/helpers/runner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb index 1369b021ea4..f8645e364ce 100644 --- a/lib/api/helpers/runner.rb +++ b/lib/api/helpers/runner.rb @@ -46,7 +46,8 @@ module API yield if block_given? - forbidden!('Project has been deleted!') unless job.project + project = job.project + forbidden!('Project has been deleted!') if project.nil? || project.pending_delete? forbidden!('Job has been erased!') if job.erased? end |