Skip to content
Snippets Groups Projects
Commit 448c695c authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Revert adding favicon to extended statuses. Change extended statues specs to use core status

parent 74f13e0d
Branches
Tags
1 merge request!9561Expose CI/CD status API endpoints with Gitlab::Ci::Status facility on pipeline, job and merge request for favicon
Loading
@@ -13,10 +13,6 @@ module Gitlab
Loading
@@ -13,10 +13,6 @@ 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
Loading
Loading
Loading
@@ -20,10 +20,6 @@ module Gitlab
Loading
@@ -20,10 +20,6 @@ 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
Loading
Loading
Loading
@@ -81,7 +81,7 @@ describe Gitlab::Ci::Status::Build::Factory do
Loading
@@ -81,7 +81,7 @@ describe Gitlab::Ci::Status::Build::Factory do
it 'fabricates status with correct details' do it 'fabricates status with correct details' do
expect(status.text).to eq 'failed' expect(status.text).to eq 'failed'
expect(status.icon).to eq 'icon_status_warning' expect(status.icon).to eq 'icon_status_warning'
expect(status.favicon).to eq 'favicon_status_warning' expect(status.favicon).to eq 'favicon_status_failed'
expect(status.label).to eq 'failed (allowed to fail)' expect(status.label).to eq 'failed (allowed to fail)'
expect(status).to have_details expect(status).to have_details
expect(status).to have_action expect(status).to have_action
Loading
Loading
Loading
@@ -22,12 +22,6 @@ describe Gitlab::Ci::Status::Build::FailedAllowed do
Loading
@@ -22,12 +22,6 @@ 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)'
Loading
Loading
Loading
@@ -17,10 +17,6 @@ describe Gitlab::Ci::Status::SuccessWarning do
Loading
@@ -17,10 +17,6 @@ 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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment