Add initial implmentation for core success status
This commit is contained in:
parent
be797097df
commit
5df3e8b81b
2 changed files with 18 additions and 0 deletions
|
@ -2,6 +2,13 @@ module Gitlab::Ci
|
||||||
module Status
|
module Status
|
||||||
module Core
|
module Core
|
||||||
class Success
|
class Success
|
||||||
|
def label
|
||||||
|
'passed'
|
||||||
|
end
|
||||||
|
|
||||||
|
def icon
|
||||||
|
'success'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
11
spec/lib/gitlab/ci/status/core/success_spec.rb
Normal file
11
spec/lib/gitlab/ci/status/core/success_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe Gitlab::Ci::Status::Core::Success do
|
||||||
|
describe '#label' do
|
||||||
|
it { expect(subject.label).to eq 'passed' }
|
||||||
|
end
|
||||||
|
|
||||||
|
describe '#icon' do
|
||||||
|
it { expect(subject.icon).to eq 'success' }
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue