2015-10-24 18:46:33 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe CiStatusHelper do
|
|
|
|
include IconsHelper
|
|
|
|
|
|
|
|
let(:success_commit) { double("Ci::Commit", status: 'success') }
|
|
|
|
let(:failed_commit) { double("Ci::Commit", status: 'failed') }
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
describe 'ci_status_icon' do
|
|
|
|
it { expect(helper.ci_status_icon(success_commit)).to include('fa-check') }
|
|
|
|
it { expect(helper.ci_status_icon(failed_commit)).to include('fa-close') }
|
2015-10-24 18:46:33 +05:30
|
|
|
end
|
|
|
|
end
|