Fixed SVG Output Test
This commit is contained in:
parent
b2501c7956
commit
fb1f75781d
1 changed files with 4 additions and 8 deletions
|
@ -8,17 +8,13 @@ describe CiStatusHelper do
|
||||||
|
|
||||||
describe '#ci_icon_for_status' do
|
describe '#ci_icon_for_status' do
|
||||||
it 'renders to correct svg on success' do
|
it 'renders to correct svg on success' do
|
||||||
expect(helper).to receive(:render)
|
expect(helper.ci_icon_for_status(success_commit.status))
|
||||||
.with('shared/icons/icon_status_success.svg', anything)
|
.to have_content('status_success')
|
||||||
|
|
||||||
helper.ci_icon_for_status(success_commit.status)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders the correct svg on failure' do
|
it 'renders the correct svg on failure' do
|
||||||
expect(helper).to receive(:render)
|
expect(helper.ci_icon_for_status(failed_commit.status))
|
||||||
.with('shared/icons/icon_status_failed.svg', anything)
|
.to have_content('status_failed')
|
||||||
|
|
||||||
helper.ci_icon_for_status(failed_commit.status)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue