BigW Consortium Gitlab

ci_status_helper_spec.rb 436 Bytes
Newer Older
1 2 3 4 5
require 'spec_helper'

describe CiStatusHelper do
  include IconsHelper

6 7
  let(:success_commit) { double("Ci::Pipeline", status: 'success') }
  let(:failed_commit) { double("Ci::Pipeline", status: 'failed') }
8

Kamil Trzcinski committed
9
  describe 'ci_icon_for_status' do
Kamil Trzcinski committed
10 11
    it { expect(helper.ci_icon_for_status(success_commit.status)).to include('fa-check') }
    it { expect(helper.ci_icon_for_status(failed_commit.status)).to include('fa-close') }
12 13
  end
end