summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 11:02:00 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 11:02:00 +0200
commit2f620aa7116f504229be81c2465fead342a57292 (patch)
tree1c2415a13a569aef6b399b5fb5cfa739d9dabc74 /spec/models
parentd382ed5eb618b5719f4fbf705a47b00c98e7c5a6 (diff)
downloadgitlab-ce-2f620aa7116f504229be81c2465fead342a57292.tar.gz
Change auto-retry count to a correct value in docs
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index acfc888d944..0b521d720f3 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -826,10 +826,10 @@ describe Ci::Build, :models do
describe '#retries_max' do
context 'when max retries value is defined' do
- subject { create(:ci_build, options: { retry: 3 }) }
+ subject { create(:ci_build, options: { retry: 1 }) }
it 'returns a number of configured max retries' do
- expect(subject.retries_max).to eq 3
+ expect(subject.retries_max).to eq 1
end
end