Commit 280ac894 authored by Krasimir Angelov's avatar Krasimir Angelov

Reformat ProjectCiCdSetting validations specs

parent 52673a91
...@@ -23,7 +23,13 @@ describe ProjectCiCdSetting do ...@@ -23,7 +23,13 @@ describe ProjectCiCdSetting do
end end
describe 'validations' do describe 'validations' do
it { is_expected.to validate_numericality_of(:default_git_depth).only_integer.is_greater_than_or_equal_to(0).is_less_than_or_equal_to(1000).allow_nil } it 'validates default_git_depth is between 0 and 1000 or nil' do
expect(subject).to validate_numericality_of(:default_git_depth)
.only_integer
.is_greater_than_or_equal_to(0)
.is_less_than_or_equal_to(1000)
.allow_nil
end
end end
describe '#default_git_depth' do describe '#default_git_depth' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment