Commit fb1f7578 authored by Tim Zallmann's avatar Tim Zallmann

Fixed SVG Output Test

parent b2501c79
......@@ -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
......
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