Update status group name for success with warnings

This commit is contained in:
Grzegorz Bizon 2016-12-16 15:28:24 +01:00
parent cce41cb2a6
commit b18897ac40
2 changed files with 5 additions and 1 deletions

View file

@ -17,7 +17,7 @@ module Gitlab
'icon_status_warning'
end
def to_s
def group
'success_with_warnings'
end

View file

@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Pipeline::SuccessWithWarnings do
it { expect(subject.icon).to eq 'icon_status_warning' }
end
describe '#group' do
it { expect(subject.group).to eq 'success_with_warnings' }
end
describe '.matches?' do
context 'when pipeline is successful' do
let(:pipeline) do