summaryrefslogtreecommitdiff
path: root/spec/presenters
diff options
context:
space:
mode:
authorFabio Pitino <fpitino@gitlab.com>2019-06-07 12:51:42 +0100
committerFabio Pitino <fpitino@gitlab.com>2019-06-12 09:51:45 +0100
commit3ac527b4889b9465b2d55ca0c9317a3e8479a625 (patch)
tree2cf311b5a19d9c1d4a2f25922fa55ec2a29351ab /spec/presenters
parent641d332351907b77b53b0cb23ff51ccea2489824 (diff)
downloadgitlab-ce-3ac527b4889b9465b2d55ca0c9317a3e8479a625.tar.gz
Expose ci_default_git_depth via project APIexpose-project-git-depth-via-api
Enable Get and Update of ci_default_git_depth for Project API. Renaming Project#default_git_depth to :ci_default_git_depth to give more context through the API usage. Add API documentation
Diffstat (limited to 'spec/presenters')
-rw-r--r--spec/presenters/ci/build_runner_presenter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/presenters/ci/build_runner_presenter_spec.rb b/spec/presenters/ci/build_runner_presenter_spec.rb
index 620f34bac79..a4234d14255 100644
--- a/spec/presenters/ci/build_runner_presenter_spec.rb
+++ b/spec/presenters/ci/build_runner_presenter_spec.rb
@@ -134,7 +134,7 @@ describe Ci::BuildRunnerPresenter do
end
it 'defaults to git depth setting for the project' do
- expect(git_depth).to eq(build.project.default_git_depth)
+ expect(git_depth).to eq(build.project.ci_default_git_depth)
end
context 'when feature flag :ci_project_git_depth is disabled' do