diff options
-rw-r--r-- | lib/gitlab/ci/status/core/canceled.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/created.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/failed.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/pending.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/running.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/skipped.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/core/success.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/canceled_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/created_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/failed_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/pending_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/running_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/skipped_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/status/core/success_spec.rb | 4 |
15 files changed, 60 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/core/canceled.rb b/lib/gitlab/ci/status/core/canceled.rb index 5e06b946a99..a05ac8ee3cc 100644 --- a/lib/gitlab/ci/status/core/canceled.rb +++ b/lib/gitlab/ci/status/core/canceled.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Canceled < Core::Base + def text + 'canceled' + end + def label 'canceled' end diff --git a/lib/gitlab/ci/status/core/created.rb b/lib/gitlab/ci/status/core/created.rb index c116f9a97f1..ee8bf2e8dac 100644 --- a/lib/gitlab/ci/status/core/created.rb +++ b/lib/gitlab/ci/status/core/created.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Created < Core::Base + def text + 'created' + end + def label 'created' end diff --git a/lib/gitlab/ci/status/core/failed.rb b/lib/gitlab/ci/status/core/failed.rb index 467ef71e819..ea1615853c0 100644 --- a/lib/gitlab/ci/status/core/failed.rb +++ b/lib/gitlab/ci/status/core/failed.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Failed < Core::Base + def text + 'failed' + end + def label 'failed' end diff --git a/lib/gitlab/ci/status/core/pending.rb b/lib/gitlab/ci/status/core/pending.rb index 05c9e41091b..95fbb710735 100644 --- a/lib/gitlab/ci/status/core/pending.rb +++ b/lib/gitlab/ci/status/core/pending.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Pending < Core::Base + def text + 'pending' + end + def label 'pending' end diff --git a/lib/gitlab/ci/status/core/running.rb b/lib/gitlab/ci/status/core/running.rb index 01f0c57ef5f..5580c1a5154 100644 --- a/lib/gitlab/ci/status/core/running.rb +++ b/lib/gitlab/ci/status/core/running.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Running < Core::Base + def text + 'running' + end + def label 'running' end diff --git a/lib/gitlab/ci/status/core/skipped.rb b/lib/gitlab/ci/status/core/skipped.rb index e791341b7e0..0e8e42f525b 100644 --- a/lib/gitlab/ci/status/core/skipped.rb +++ b/lib/gitlab/ci/status/core/skipped.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Skipped < Core::Base + def text + 'skipped' + end + def label 'skipped' end diff --git a/lib/gitlab/ci/status/core/success.rb b/lib/gitlab/ci/status/core/success.rb index bcfe7e63a6c..7efafdb615f 100644 --- a/lib/gitlab/ci/status/core/success.rb +++ b/lib/gitlab/ci/status/core/success.rb @@ -2,6 +2,10 @@ module Gitlab::Ci module Status module Core class Success < Core::Base + def text + 'passed' + end + def label 'passed' end diff --git a/lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb b/lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb index 5e92bb97eec..8f1d9cf87c7 100644 --- a/lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb +++ b/lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb @@ -5,6 +5,10 @@ module Gitlab::Ci class SuccessWithWarnings < SimpleDelegator extend Status::Extended::Base + def text + 'passed' + end + def label 'passed with warnings' end diff --git a/spec/lib/gitlab/ci/status/core/canceled_spec.rb b/spec/lib/gitlab/ci/status/core/canceled_spec.rb index d03b7a18aa0..fd90eb6beda 100644 --- a/spec/lib/gitlab/ci/status/core/canceled_spec.rb +++ b/spec/lib/gitlab/ci/status/core/canceled_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Canceled do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'canceled' } + end + describe '#label' do it { expect(subject.label).to eq 'canceled' } end diff --git a/spec/lib/gitlab/ci/status/core/created_spec.rb b/spec/lib/gitlab/ci/status/core/created_spec.rb index 5a6d7523e83..a35a3e14929 100644 --- a/spec/lib/gitlab/ci/status/core/created_spec.rb +++ b/spec/lib/gitlab/ci/status/core/created_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Created do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'created' } + end + describe '#label' do it { expect(subject.label).to eq 'created' } end diff --git a/spec/lib/gitlab/ci/status/core/failed_spec.rb b/spec/lib/gitlab/ci/status/core/failed_spec.rb index 0b7e03f1684..41ce63b3a6f 100644 --- a/spec/lib/gitlab/ci/status/core/failed_spec.rb +++ b/spec/lib/gitlab/ci/status/core/failed_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Failed do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'failed' } + end + describe '#label' do it { expect(subject.label).to eq 'failed' } end diff --git a/spec/lib/gitlab/ci/status/core/pending_spec.rb b/spec/lib/gitlab/ci/status/core/pending_spec.rb index 95f2255e66d..988d3c0a9e2 100644 --- a/spec/lib/gitlab/ci/status/core/pending_spec.rb +++ b/spec/lib/gitlab/ci/status/core/pending_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Pending do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'pending' } + end + describe '#label' do it { expect(subject.label).to eq 'pending' } end diff --git a/spec/lib/gitlab/ci/status/core/running_spec.rb b/spec/lib/gitlab/ci/status/core/running_spec.rb index 648de678618..dbb0d37659c 100644 --- a/spec/lib/gitlab/ci/status/core/running_spec.rb +++ b/spec/lib/gitlab/ci/status/core/running_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Running do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'running' } + end + describe '#label' do it { expect(subject.label).to eq 'running' } end diff --git a/spec/lib/gitlab/ci/status/core/skipped_spec.rb b/spec/lib/gitlab/ci/status/core/skipped_spec.rb index dc2b56a1e34..624348af2d1 100644 --- a/spec/lib/gitlab/ci/status/core/skipped_spec.rb +++ b/spec/lib/gitlab/ci/status/core/skipped_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Skipped do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'skipped' } + end + describe '#label' do it { expect(subject.label).to eq 'skipped' } end diff --git a/spec/lib/gitlab/ci/status/core/success_spec.rb b/spec/lib/gitlab/ci/status/core/success_spec.rb index fc67e58adb5..c4bc0d5e234 100644 --- a/spec/lib/gitlab/ci/status/core/success_spec.rb +++ b/spec/lib/gitlab/ci/status/core/success_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe Gitlab::Ci::Status::Core::Success do subject { described_class.new(double('subject')) } + describe '#text' do + it { expect(subject.label).to eq 'passed' } + end + describe '#label' do it { expect(subject.label).to eq 'passed' } end |