summaryrefslogtreecommitdiff
path: root/spec/helpers/ci_status_helper_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-12 13:18:51 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-12-12 13:18:51 -0500
commit3084c8c37064d7309ac4ca7b9ecb24ca8c625d24 (patch)
tree82ce7fcb7a8faf5e487a2247088efffdfe82237a /spec/helpers/ci_status_helper_spec.rb
parenta5e449571bb941d65d33569a0f0db575a5b3d399 (diff)
downloadgitlab-ce-3084c8c37064d7309ac4ca7b9ecb24ca8c625d24.tar.gz
Define CI status icon colors in SCSS instead of a helperrs-simplify-status-icon
Diffstat (limited to 'spec/helpers/ci_status_helper_spec.rb')
-rw-r--r--spec/helpers/ci_status_helper_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/helpers/ci_status_helper_spec.rb b/spec/helpers/ci_status_helper_spec.rb
index 7fc53eb1472..4f8d9c67262 100644
--- a/spec/helpers/ci_status_helper_spec.rb
+++ b/spec/helpers/ci_status_helper_spec.rb
@@ -6,13 +6,8 @@ describe CiStatusHelper do
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') }
- end
-
- 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') }
+ 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') }
end
end