2019-07-25 01:21:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-09-27 06:36:09 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe Gitlab::Ci::Status::Scheduled do
|
2018-09-27 06:36:09 -04:00
|
|
|
subject do
|
|
|
|
described_class.new(double('subject'), double('user'))
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#text' do
|
2018-10-19 12:28:41 -04:00
|
|
|
it { expect(subject.text).to eq 'delayed' }
|
2018-09-27 06:36:09 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
describe '#label' do
|
2018-10-19 12:28:41 -04:00
|
|
|
it { expect(subject.label).to eq 'delayed' }
|
2018-09-27 06:36:09 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
describe '#icon' do
|
|
|
|
it { expect(subject.icon).to eq 'status_scheduled' }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#favicon' do
|
|
|
|
it { expect(subject.favicon).to eq 'favicon_status_scheduled' }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#group' do
|
|
|
|
it { expect(subject.group).to eq 'scheduled' }
|
|
|
|
end
|
2020-10-13 11:08:53 -04:00
|
|
|
|
|
|
|
describe '#details_path' do
|
|
|
|
it { expect(subject.details_path).to be_nil }
|
|
|
|
end
|
2018-09-27 06:36:09 -04:00
|
|
|
end
|