summaryrefslogtreecommitdiff
path: root/app/models/ci/stage.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-05 14:38:01 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-12-06 14:13:21 +0100
commit10499677e2cbabc6331837d20afc0e0fe68ddc37 (patch)
tree88439ea52ae889f4bb97478c20b3f54799abd7aa /app/models/ci/stage.rb
parentd47aef58cd88fb813390c904bd24525e24d41483 (diff)
downloadgitlab-ce-10499677e2cbabc6331837d20afc0e0fe68ddc37.tar.gz
Added Stage tests
Diffstat (limited to 'app/models/ci/stage.rb')
-rw-r--r--app/models/ci/stage.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb
index 2e7f15a16d7..d5ff97c935a 100644
--- a/app/models/ci/stage.rb
+++ b/app/models/ci/stage.rb
@@ -20,6 +20,10 @@ module Ci
@status ||= statuses.latest.status
end
+ def detailed_status
+ Gitlab::Ci::Status::Stage::Factory.new(self).fabricate!
+ end
+
def statuses
@statuses ||= pipeline.statuses.where(stage: stage)
end