Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ci_status_helper_spec.rb « helpers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f942695b6f0f5b24104de6baa68928448563a8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe CiStatusHelper do
  include IconsHelper

  let(:success_commit) { double("Ci::Commit", status: 'success') }
  let(:failed_commit) { double("Ci::Commit", status: 'failed') }

  describe 'ci_icon_for_status' do
    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') }
  end
end