Fix unchanged structure. Add favicon for 'failed_allowed' and 'success_warning' because it'll be used.
This commit is contained in:
parent
38b1ec2cc0
commit
74f13e0ddf
5 changed files with 20 additions and 2 deletions
|
@ -13,6 +13,10 @@ module Gitlab
|
||||||
'icon_status_warning'
|
'icon_status_warning'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def favicon
|
||||||
|
'favicon_status_warning'
|
||||||
|
end
|
||||||
|
|
||||||
def group
|
def group
|
||||||
'failed_with_warnings'
|
'failed_with_warnings'
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,6 +20,10 @@ module Gitlab
|
||||||
'icon_status_warning'
|
'icon_status_warning'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def favicon
|
||||||
|
'favicon_status_warning'
|
||||||
|
end
|
||||||
|
|
||||||
def group
|
def group
|
||||||
'success_with_warnings'
|
'success_with_warnings'
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,12 @@ describe Gitlab::Ci::Status::Build::FailedAllowed do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe '#favicon' do
|
||||||
|
it 'returns a warning favicon' do
|
||||||
|
expect(subject.favicon).to eq 'favicon_status_warning'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe '#label' do
|
describe '#label' do
|
||||||
it 'returns information about failed but allowed to fail status' do
|
it 'returns information about failed but allowed to fail status' do
|
||||||
expect(subject.label).to eq 'failed (allowed to fail)'
|
expect(subject.label).to eq 'failed (allowed to fail)'
|
||||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::SuccessWarning do
|
||||||
it { expect(subject.icon).to eq 'icon_status_warning' }
|
it { expect(subject.icon).to eq 'icon_status_warning' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe '#favicon' do
|
||||||
|
it { expect(subject.favicon).to eq 'favicon_status_warning' }
|
||||||
|
end
|
||||||
|
|
||||||
describe '#group' do
|
describe '#group' do
|
||||||
it { expect(subject.group).to eq 'success_with_warnings' }
|
it { expect(subject.group).to eq 'success_with_warnings' }
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,8 +29,8 @@ describe BuildEntity do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'contains details' do
|
it 'contains details' do
|
||||||
expect(subject).to include :details
|
expect(subject).to include :status
|
||||||
expect(subject[:details][:status]).to include :icon, :favicon, :text, :label
|
expect(subject[:status]).to include :icon, :favicon, :text, :label
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when build is a regular job' do
|
context 'when build is a regular job' do
|
||||||
|
|
Loading…
Reference in a new issue