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 12:19:51 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-30 12:27:46 +0300
commitf8ce8d2817a1fc852b7b1807217275ccc242a2f9 (patch)
tree7fa112ee8152b9977080accfc1e6bd2780d43f91 /spec/helpers/ci_status_helper_spec.rb
parent6c1210d1d27007a0210490cb9ed444dc54c6a2d6 (diff)
CHanged to String Statuses
Diffstat (limited to 'spec/helpers/ci_status_helper_spec.rb')
-rw-r--r--spec/helpers/ci_status_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/ci_status_helper_spec.rb b/spec/helpers/ci_status_helper_spec.rb
index 2b658bb7fac..224e01c492a 100644
--- a/spec/helpers/ci_status_helper_spec.rb
+++ b/spec/helpers/ci_status_helper_spec.rb
@@ -8,13 +8,13 @@ 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).to_s)
- .to have_content('status_success')
+ expect(helper.ci_icon_for_status('success').to_s)
+ .to include 'status_success'
end
it 'renders the correct svg on failure' do
- expect(helper.ci_icon_for_status(failed_commit.status).to_s)
- .to have_content('status_failed')
+ expect(helper.ci_icon_for_status('failed'.status).to_s)
+ .to include 'status_failed'
end
end