Need to render it into String cause its a content_tag
This commit is contained in:
parent
fb1f75781d
commit
6c1210d1d2
1 changed files with 2 additions and 2 deletions
|
@ -8,12 +8,12 @@ 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.ci_icon_for_status(success_commit.status))
|
expect(helper.ci_icon_for_status(success_commit.status).to_s)
|
||||||
.to have_content('status_success')
|
.to have_content('status_success')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders the correct svg on failure' do
|
it 'renders the correct svg on failure' do
|
||||||
expect(helper.ci_icon_for_status(failed_commit.status))
|
expect(helper.ci_icon_for_status(failed_commit.status).to_s)
|
||||||
.to have_content('status_failed')
|
.to have_content('status_failed')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue