Fix tests for build empty state statuses
This commit is contained in:
parent
b57fcbe616
commit
d6509274f3
|
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Status::Build::Canceled do
|
||||
subject do
|
||||
described_class.new(double('subject'))
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title) }
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Status::Build::Created do
|
||||
subject do
|
||||
described_class.new(double('subject'))
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Status::Build::Manual do
|
||||
subject do
|
||||
user = create(:user)
|
||||
build = create(:ci_build, :manual)
|
||||
described_class.new(Gitlab::Ci::Status::Core.new(build, user))
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content, :action_path, :action_method) }
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Status::Build::Pending do
|
||||
subject do
|
||||
described_class.new(double('subject'))
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Ci::Status::Build::Skipped do
|
||||
subject do
|
||||
described_class.new(double('subject'))
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title) }
|
||||
end
|
||||
end
|
||||
|
|
@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Canceled do
|
|||
it { expect(subject.favicon).to eq 'favicon_status_canceled' }
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title) }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'canceled' }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do
|
|||
it { expect(subject.favicon).to eq 'favicon_status_created' }
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'created' }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do
|
|||
it { expect(subject.favicon).to eq 'favicon_status_manual' }
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'manual' }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do
|
|||
it { expect(subject.favicon).to eq 'favicon_status_pending' }
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'pending' }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do
|
|||
it { expect(subject.favicon).to eq 'favicon_status_skipped' }
|
||||
end
|
||||
|
||||
describe '#illustration' do
|
||||
it { expect(subject.illustration).to include(:image, :size, :title) }
|
||||
end
|
||||
|
||||
describe '#group' do
|
||||
it { expect(subject.group).to eq 'skipped' }
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue