diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-09-27 19:36:09 +0900 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 17:08:12 +0200 |
commit | 5e35e85acb5403ae1a992e2cd1c9618f6fc9273e (patch) | |
tree | a297959cab9dfe019d438c7b01d08049ec118605 | |
parent | 5e4824d9ed8d164ff5a8ed5bfbf1e5a0f1bf1cff (diff) | |
download | gitlab-ce-5e35e85acb5403ae1a992e2cd1c9618f6fc9273e.tar.gz |
Add spec for scheduled status
-rw-r--r-- | spec/lib/gitlab/ci/status/scheduled_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/status/scheduled_spec.rb b/spec/lib/gitlab/ci/status/scheduled_spec.rb new file mode 100644 index 00000000000..c35a6f43d5d --- /dev/null +++ b/spec/lib/gitlab/ci/status/scheduled_spec.rb @@ -0,0 +1,27 @@ +require 'spec_helper' + +describe Gitlab::Ci::Status::Scheduled do + subject do + described_class.new(double('subject'), double('user')) + end + + describe '#text' do + it { expect(subject.text).to eq 'scheduled' } + end + + describe '#label' do + it { expect(subject.label).to eq 'scheduled' } + 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 +end |