diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-28 23:37:34 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-30 10:27:46 +0100 |
commit | fb1f75781d267a552a389407264a66198c5f47c8 (patch) | |
tree | 14290d71ecbd443522c5938415a211470216a4f8 | |
parent | b2501c79569ef9b6ff3516be1924d9367794bc4f (diff) | |
download | gitlab-ce-fb1f75781d267a552a389407264a66198c5f47c8.tar.gz |
Fixed SVG Output Test
-rw-r--r-- | spec/helpers/ci_status_helper_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/helpers/ci_status_helper_spec.rb b/spec/helpers/ci_status_helper_spec.rb index 6a3945c0ebc..72fa23d6ae2 100644 --- a/spec/helpers/ci_status_helper_spec.rb +++ b/spec/helpers/ci_status_helper_spec.rb @@ -8,17 +8,13 @@ describe CiStatusHelper do describe '#ci_icon_for_status' do 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) + expect(helper.ci_icon_for_status(success_commit.status)) + .to have_content('status_success') 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) + expect(helper.ci_icon_for_status(failed_commit.status)) + .to have_content('status_failed') end end |