diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-04-05 14:52:54 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-04-05 14:52:54 +0300 |
commit | f379e1b370d033097c1d0102401eb6156384890c (patch) | |
tree | d2720b76e759a5cbc56fdd5324c50b8191fb31e6 /lib/gitlab | |
parent | 00b45348b9dca5c394fa64a7f4975232dc712b5b (diff) |
Rename success to erased empty state spec
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/ci/status/build/erased.rb (renamed from lib/gitlab/ci/status/build/success.rb) | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/build/factory.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/status/build/success.rb b/lib/gitlab/ci/status/build/erased.rb index daf43315c90..3a5113b16b6 100644 --- a/lib/gitlab/ci/status/build/success.rb +++ b/lib/gitlab/ci/status/build/erased.rb @@ -2,7 +2,7 @@ module Gitlab module Ci module Status module Build - class Success < Status::Extended + class Erased < Status::Extended def illustration { image: 'illustrations/skipped-job_empty.svg', @@ -12,7 +12,7 @@ module Gitlab end def self.matches?(build, user) - !build.has_trace? && build.success? + build.erased? end end end diff --git a/lib/gitlab/ci/status/build/factory.rb b/lib/gitlab/ci/status/build/factory.rb index d3a34384f6f..466a0a989ad 100644 --- a/lib/gitlab/ci/status/build/factory.rb +++ b/lib/gitlab/ci/status/build/factory.rb @@ -9,7 +9,7 @@ module Gitlab Status::Build::Created, Status::Build::Pending, Status::Build::Skipped, - Status::Build::Success], + Status::Build::Erased], [Status::Build::Cancelable, Status::Build::Retryable], [Status::Build::FailedAllowed, |