Read about our upcoming Code of Conduct on this issue

Unverified Commit 3b6915d8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add tests for CiStatusHelper and changelog item

Signed-off-by: default avatarDmitriy Zaporozhets <>
parent f877d72fe1c8
Please view this file on the master branch, on stable branches it's out of date.
v 8.1.0 (unreleased)
- Show CI status on all pages where commits list is rendered
v 8.0.1
- Improve CI migration procedure and documentation
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_status_color' do
it { expect(ci_status_icon(success_commit)).to include('fa-check') }
it { expect(ci_status_icon(failed_commit)).to include('fa-close') }
describe 'ci_status_color' do
it { expect(ci_status_color(success_commit)).to eq('green') }
it { expect(ci_status_color(failed_commit)).to eq('red') }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment