diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-07-19 11:11:52 -0700 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-07-19 11:11:52 -0700 |
commit | 21096189a5712de4ae63818c5cdfaa751a7cbd3c (patch) | |
tree | d0346a8c52151ac6424c1ee0c1f11fc59989ba7e /spec/helpers/ci_status_helper_spec.rb | |
parent | 293d31ca87f07a75a8402931b8116dc8666da55d (diff) | |
download | gitlab-ce-21096189a5712de4ae63818c5cdfaa751a7cbd3c.tar.gz |
Fix ci_status_helper_spec to look for new SVGs
Diffstat (limited to 'spec/helpers/ci_status_helper_spec.rb')
-rw-r--r-- | spec/helpers/ci_status_helper_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/helpers/ci_status_helper_spec.rb b/spec/helpers/ci_status_helper_spec.rb index 45199d0f09d..637b02d9388 100644 --- a/spec/helpers/ci_status_helper_spec.rb +++ b/spec/helpers/ci_status_helper_spec.rb @@ -7,7 +7,13 @@ describe CiStatusHelper do let(:failed_commit) { double("Ci::Pipeline", status: 'failed') } 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') } + it 'renders to correct svg on success' do + expect(helper).to receive(:render).with('shared/icons/icon_status_success.svg', anything) + helper.ci_icon_for_status(success_commit.status) + end + it 'renders the correct svg on failure' do + expect(helper).to receive(:render).with('shared/icons/icon_status_failed.svg', anything) + helper.ci_icon_for_status(failed_commit.status) + end end end |