2015-09-23 06:34:21 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe CiStatusHelper do
|
|
|
|
include IconsHelper
|
|
|
|
|
|
|
|
let(:success_commit) { double("Ci::Commit", status: 'success') }
|
|
|
|
let(:failed_commit) { double("Ci::Commit", status: 'failed') }
|
|
|
|
|
2016-04-13 09:58:22 -04:00
|
|
|
describe 'ci_icon_for_status' do
|
2016-04-11 10:55:40 -04:00
|
|
|
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-09-23 06:34:21 -04:00
|
|
|
end
|
|
|
|
end
|