Add initial implmentation for core success status

This commit is contained in:
Grzegorz Bizon 2016-12-02 12:14:10 +01:00
parent be797097df
commit 5df3e8b81b
2 changed files with 18 additions and 0 deletions

View file

@ -2,6 +2,13 @@ module Gitlab::Ci
module Status
module Core
class Success
def label
'passed'
end
def icon
'success'
end
end
end
end

View 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