diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-05 11:35:27 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-05 11:35:27 +0100 |
commit | b86d8afe23524d10956cfbc1b87337fd2ce75e8c (patch) | |
tree | ee4d9ef71a31177164025eccb11e7bdd01105225 /spec/lib/gitlab/ci/status/running_spec.rb | |
parent | d55ff247569a2bf5c78c80f966a56b28d5c8332f (diff) | |
download | gitlab-ce-b86d8afe23524d10956cfbc1b87337fd2ce75e8c.tar.gz |
Fold core/extended status modules to reduce nesting
Diffstat (limited to 'spec/lib/gitlab/ci/status/running_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/status/running_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/status/running_spec.rb b/spec/lib/gitlab/ci/status/running_spec.rb new file mode 100644 index 00000000000..c023f1872cc --- /dev/null +++ b/spec/lib/gitlab/ci/status/running_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +describe Gitlab::Ci::Status::Running do + subject { described_class.new(double('subject')) } + + describe '#text' do + it { expect(subject.label).to eq 'running' } + end + + describe '#label' do + it { expect(subject.label).to eq 'running' } + end + + describe '#icon' do + it { expect(subject.icon).to eq 'icon_status_running' } + end + + describe '#title' do + it { expect(subject.title).to eq 'Double: running' } + end +end |