2016-12-02 07:08:21 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2016-12-05 05:35:27 -05:00
|
|
|
describe Gitlab::Ci::Status::Created do
|
2016-12-08 08:40:21 -05:00
|
|
|
subject do
|
|
|
|
described_class.new(double('subject'), double('user'))
|
|
|
|
end
|
2016-12-02 07:08:21 -05:00
|
|
|
|
2016-12-02 07:56:33 -05:00
|
|
|
describe '#text' do
|
2017-03-06 08:08:55 -05:00
|
|
|
it { expect(subject.text).to eq 'created' }
|
2016-12-02 07:56:33 -05:00
|
|
|
end
|
|
|
|
|
2016-12-02 07:08:21 -05:00
|
|
|
describe '#label' do
|
|
|
|
it { expect(subject.label).to eq 'created' }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#icon' do
|
2017-10-02 04:40:32 -04:00
|
|
|
it { expect(subject.icon).to eq 'status_created' }
|
2016-12-02 07:08:21 -05:00
|
|
|
end
|
2016-12-15 06:55:20 -05:00
|
|
|
|
2017-03-10 10:49:52 -05:00
|
|
|
describe '#favicon' do
|
|
|
|
it { expect(subject.favicon).to eq 'favicon_status_created' }
|
|
|
|
end
|
|
|
|
|
2016-12-15 06:55:20 -05:00
|
|
|
describe '#group' do
|
|
|
|
it { expect(subject.group).to eq 'created' }
|
|
|
|
end
|
2016-12-02 07:08:21 -05:00
|
|
|
end
|