BigW Consortium Gitlab

running_spec.rb 567 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe Gitlab::Ci::Status::Running do
4 5 6
  subject do
    described_class.new(double('subject'), double('user'))
  end
7

8
  describe '#text' do
9
    it { expect(subject.text).to eq 'running' }
10 11
  end

12 13 14 15 16 17 18
  describe '#label' do
    it { expect(subject.label).to eq 'running' }
  end

  describe '#icon' do
    it { expect(subject.icon).to eq 'icon_status_running' }
  end
19

20 21 22 23
  describe '#favicon' do
    it { expect(subject.favicon).to eq 'favicon_status_running' }
  end

24 25 26
  describe '#group' do
    it { expect(subject.group).to eq 'running' }
  end
27
end