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

Add spec for spec/lib/gitlab/ci/status

parent a5b96417
No related branches found
No related tags found
1 merge request!9561Expose CI/CD status API endpoints with Gitlab::Ci::Status facility on pipeline, job and merge request for favicon
Loading
@@ -13,6 +13,10 @@ module Gitlab
Loading
@@ -13,6 +13,10 @@ module Gitlab
def icon def icon
'icon_status_manual' 'icon_status_manual'
end end
def favicon
'favicon_status_manual'
end
end end
end end
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Canceled do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Canceled do
it { expect(subject.icon).to eq 'icon_status_canceled' } it { expect(subject.icon).to eq 'icon_status_canceled' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_canceled' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'canceled' } it { expect(subject.group).to eq 'canceled' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Created do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Created do
it { expect(subject.icon).to eq 'icon_status_created' } it { expect(subject.icon).to eq 'icon_status_created' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_created' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'created' } it { expect(subject.group).to eq 'created' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Failed do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Failed do
it { expect(subject.icon).to eq 'icon_status_failed' } it { expect(subject.icon).to eq 'icon_status_failed' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_failed' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'failed' } it { expect(subject.group).to eq 'failed' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Manual do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Manual do
it { expect(subject.icon).to eq 'icon_status_manual' } it { expect(subject.icon).to eq 'icon_status_manual' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_manual' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'manual' } it { expect(subject.group).to eq 'manual' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Pending do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Pending do
it { expect(subject.icon).to eq 'icon_status_pending' } it { expect(subject.icon).to eq 'icon_status_pending' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_pending' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'pending' } it { expect(subject.group).to eq 'pending' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Running do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Running do
it { expect(subject.icon).to eq 'icon_status_running' } it { expect(subject.icon).to eq 'icon_status_running' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_running' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'running' } it { expect(subject.group).to eq 'running' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Skipped do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Skipped do
it { expect(subject.icon).to eq 'icon_status_skipped' } it { expect(subject.icon).to eq 'icon_status_skipped' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_skipped' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'skipped' } it { expect(subject.group).to eq 'skipped' }
end end
Loading
Loading
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Success do
Loading
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Success do
it { expect(subject.icon).to eq 'icon_status_success' } it { expect(subject.icon).to eq 'icon_status_success' }
end end
   
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_success' }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'success' } it { expect(subject.group).to eq 'success' }
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment