Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-09-29 10:17:10 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-30 12:27:46 +0300
commit6c1210d1d27007a0210490cb9ed444dc54c6a2d6 (patch)
treec21275bfab76d0953cd0cd1979ac24bb8710dda0 /spec/helpers/ci_status_helper_spec.rb
parentfb1f75781d267a552a389407264a66198c5f47c8 (diff)
Need to render it into String cause its a content_tag
Diffstat (limited to 'spec/helpers/ci_status_helper_spec.rb')
-rw-r--r--spec/helpers/ci_status_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/ci_status_helper_spec.rb b/spec/helpers/ci_status_helper_spec.rb
index 72fa23d6ae2..2b658bb7fac 100644
--- a/spec/helpers/ci_status_helper_spec.rb
+++ b/spec/helpers/ci_status_helper_spec.rb
@@ -8,12 +8,12 @@ describe CiStatusHelper do
describe '#ci_icon_for_status' 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')
end
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')
end
end