Commit d6509274 authored by Matija Čupić's avatar Matija Čupić

Fix tests for build empty state statuses

parent b57fcbe6
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
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
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
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
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 ...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Canceled do
it { expect(subject.favicon).to eq 'favicon_status_canceled' } it { expect(subject.favicon).to eq 'favicon_status_canceled' }
end end
describe '#illustration' do
it { expect(subject.illustration).to include(:image, :size, :title) }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'canceled' } it { expect(subject.group).to eq 'canceled' }
end end
......
...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do ...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do
it { expect(subject.favicon).to eq 'favicon_status_created' } it { expect(subject.favicon).to eq 'favicon_status_created' }
end end
describe '#illustration' do
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'created' } it { expect(subject.group).to eq 'created' }
end end
......
...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do ...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do
it { expect(subject.favicon).to eq 'favicon_status_manual' } it { expect(subject.favicon).to eq 'favicon_status_manual' }
end end
describe '#illustration' do
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'manual' } it { expect(subject.group).to eq 'manual' }
end end
......
...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do ...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do
it { expect(subject.favicon).to eq 'favicon_status_pending' } it { expect(subject.favicon).to eq 'favicon_status_pending' }
end end
describe '#illustration' do
it { expect(subject.illustration).to include(:image, :size, :title, :content) }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'pending' } it { expect(subject.group).to eq 'pending' }
end end
......
...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do ...@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do
it { expect(subject.favicon).to eq 'favicon_status_skipped' } it { expect(subject.favicon).to eq 'favicon_status_skipped' }
end end
describe '#illustration' do
it { expect(subject.illustration).to include(:image, :size, :title) }
end
describe '#group' do describe '#group' do
it { expect(subject.group).to eq 'skipped' } it { expect(subject.group).to eq 'skipped' }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment