From fdb5a51352fdb4796d26ab2c9a1daaa5a89a0283 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Wed, 19 Sep 2018 19:38:19 +0200 Subject: refactor for hopefully lower cognitive complexity before: - Method `validate_retry` has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. - Method `validate_retry_max` has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. - Method `validate_retry_when` has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. --- spec/lib/gitlab/ci/config/entry/job_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/lib/gitlab/ci/config') diff --git a/spec/lib/gitlab/ci/config/entry/job_spec.rb b/spec/lib/gitlab/ci/config/entry/job_spec.rb index 9054e909a44..7d0a5b81084 100644 --- a/spec/lib/gitlab/ci/config/entry/job_spec.rb +++ b/spec/lib/gitlab/ci/config/entry/job_spec.rb @@ -242,7 +242,7 @@ describe Gitlab::Ci::Config::Entry::Job do it 'returns error about the wrong format' do expect(entry).not_to be_valid - expect(entry.errors).to include 'job retry when cannot have unknown failures unknown_reason' + expect(entry.errors).to include 'job retry when contains unknown values: unknown_reason' end end end -- cgit v1.2.3