diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-06-10 17:40:19 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2019-06-10 17:40:19 +0000 |
commit | 3df74a403670ef2ca450bf474e9864ede56dd235 (patch) | |
tree | aa988b6e29f04abb1bb34646a8c4fe51600a578a /spec/presenters | |
parent | 9254b5d4c0cc41e552e896e16ef0bf62b5d9ae5b (diff) | |
download | gitlab-ce-3df74a403670ef2ca450bf474e9864ede56dd235.tar.gz |
Move project default git depth behind feature flags
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/ci/build_runner_presenter_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/presenters/ci/build_runner_presenter_spec.rb b/spec/presenters/ci/build_runner_presenter_spec.rb index 9ed8e3a4e0a..620f34bac79 100644 --- a/spec/presenters/ci/build_runner_presenter_spec.rb +++ b/spec/presenters/ci/build_runner_presenter_spec.rb @@ -136,6 +136,16 @@ describe Ci::BuildRunnerPresenter do it 'defaults to git depth setting for the project' do expect(git_depth).to eq(build.project.default_git_depth) end + + context 'when feature flag :ci_project_git_depth is disabled' do + before do + stub_feature_flags(ci_project_git_depth: { enabled: false }) + end + + it 'defaults to 0' do + expect(git_depth).to eq(0) + end + end end describe '#refspecs' do |