Add spec for spec/lib/gitlab/ci/status
This commit is contained in:
parent
a5b96417f3
commit
49f9ab9064
9 changed files with 36 additions and 0 deletions
|
@ -13,6 +13,10 @@ module Gitlab
|
|||
def icon
|
||||
'icon_status_manual'
|
||||
end
|
||||
|
||||
def favicon
|
||||
'favicon_status_manual'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Canceled do
|
|||
it { expect(subject.icon).to eq 'icon_status_canceled' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_canceled' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'canceled' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Created do
|
|||
it { expect(subject.icon).to eq 'icon_status_created' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_created' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'created' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Failed do
|
|||
it { expect(subject.icon).to eq 'icon_status_failed' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_failed' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'failed' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Manual do
|
|||
it { expect(subject.icon).to eq 'icon_status_manual' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_manual' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'manual' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Pending do
|
|||
it { expect(subject.icon).to eq 'icon_status_pending' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_pending' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'pending' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Running do
|
|||
it { expect(subject.icon).to eq 'icon_status_running' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_running' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'running' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Skipped do
|
|||
it { expect(subject.icon).to eq 'icon_status_skipped' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_skipped' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'skipped' }
|
||||
end
|
||||
|
|
|
@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Success do
|
|||
it { expect(subject.icon).to eq 'icon_status_success' }
|
||||
end
|
||||
|
||||
describe '#favicon' do
|
||||
it { expect(subject.favicon).to eq 'favicon_status_success' }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'success' }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue