summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-06 03:10:52 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-06 03:10:52 +0800
commite258e6f1471fb176e39daf6fef7785af120c2178 (patch)
tree374873e6eebb747c4d19ec065f2f2fa49a86d0cb /app/presenters
parent6bf1780aa81a45afdf9ddbfc32c2b9f1e0ba9285 (diff)
downloadgitlab-ce-e258e6f1471fb176e39daf6fef7785af120c2178.tar.gz
Add test for presenters
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/ci/pipeline_presenter.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/presenters/ci/pipeline_presenter.rb b/app/presenters/ci/pipeline_presenter.rb
index 8f9e4fa707d..b8e74bf5509 100644
--- a/app/presenters/ci/pipeline_presenter.rb
+++ b/app/presenters/ci/pipeline_presenter.rb
@@ -2,10 +2,6 @@ module Ci
class PipelinePresenter < Gitlab::View::Presenter::Delegated
presents :pipeline
- def auto_canceled?
- canceled? && auto_canceled_by_id?
- end
-
def status_title
"Pipeline is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}" if auto_canceled?
end