2015-10-24 18:46:33 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe CiStatusHelper do
|
|
|
|
include IconsHelper
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
let(:success_commit) { double("Ci::Pipeline", status: 'success') }
|
|
|
|
let(:failed_commit) { double("Ci::Pipeline", status: 'failed') }
|
2015-10-24 18:46:33 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
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') }
|
2015-10-24 18:46:33 +05:30
|
|
|
end
|
|
|
|
end
|