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:
authorMarkus Doits <markus.doits@stellenticket.de>2018-09-19 20:38:19 +0300
committerMarkus Doits <markus.doits@stellenticket.de>2018-11-07 15:02:56 +0300
commitfdb5a51352fdb4796d26ab2c9a1daaa5a89a0283 (patch)
tree40c9521566f52b9616eee225bab5b2a7259da61c /spec/lib/gitlab/ci/config
parentffcc200a68fd6d08707a8fd70b128a79206fd69e (diff)
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.
Diffstat (limited to 'spec/lib/gitlab/ci/config')
-rw-r--r--spec/lib/gitlab/ci/config/entry/job_spec.rb2
1 files changed, 1 insertions, 1 deletions
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