Commit 0c7168b9 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add information about badge test to core statuses

parent 119757ac
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Canceled < Core::Base
def text
'canceled'
end
def label
'canceled'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Created < Core::Base
def text
'created'
end
def label
'created'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Failed < Core::Base
def text
'failed'
end
def label
'failed'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Pending < Core::Base
def text
'pending'
end
def label
'pending'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Running < Core::Base
def text
'running'
end
def label
'running'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Skipped < Core::Base
def text
'skipped'
end
def label
'skipped'
end
......
......@@ -2,6 +2,10 @@ module Gitlab::Ci
module Status
module Core
class Success < Core::Base
def text
'passed'
end
def label
'passed'
end
......
......@@ -5,6 +5,10 @@ module Gitlab::Ci
class SuccessWithWarnings < SimpleDelegator
extend Status::Extended::Base
def text
'passed'
end
def label
'passed with warnings'
end
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment