summaryrefslogtreecommitdiff
path: root/spec/services
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/services
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/services')
-rw-r--r--spec/services/projects/fork_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/projects/fork_service_spec.rb b/spec/services/projects/fork_service_spec.rb
index 3211a6e1310..6afc91d5e95 100644
--- a/spec/services/projects/fork_service_spec.rb
+++ b/spec/services/projects/fork_service_spec.rb
@@ -150,21 +150,21 @@ describe Projects::ForkService do
context "when origin has git depth specified" do
before do
- @from_project.update(default_git_depth: 42)
+ @from_project.update(ci_default_git_depth: 42)
end
it "inherits default_git_depth from the origin project" do
- expect(to_project.default_git_depth).to eq(42)
+ expect(to_project.ci_default_git_depth).to eq(42)
end
end
context "when origin does not define git depth" do
before do
- @from_project.update!(default_git_depth: nil)
+ @from_project.update!(ci_default_git_depth: nil)
end
it "the fork has git depth set to 0" do
- expect(to_project.default_git_depth).to eq(0)
+ expect(to_project.ci_default_git_depth).to eq(0)
end
end
end