summaryrefslogtreecommitdiff
path: root/spec/gitlab_access_spec.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-08-16 13:00:24 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-08-16 15:06:03 +0200
commit2d212e401e099543f7612e67ff35b4e8b10593c0 (patch)
treec8d38ce1c033d3ad5acf4407a1447f3b95eb6cf2 /spec/gitlab_access_spec.rb
parentfb8606f65a60808e52539f71f09fba871b5aba6b (diff)
downloadgitlab-shell-zj-remove-repo-path.tar.gz
Remove repo_path from GitlabShellzj-remove-repo-path
The internal api returns '/' from gitlab, since `8fad07383ada021fc995294fd0fe0f77fe37da35` from GitLab CE. To clean up later, https://gitlab.com/gitlab-org/gitlab-shell/issues/135 was created. This change closes that issue, making it possible to remove the field from the response on GitLab-CE too. Given the Rails app always returns `/` as the repository_path, the associated checks are basically a noop too. The tests are updated and at times look a little fishy, but those are testing code that is to be removed in another MR. Closes https://gitlab.com/gitlab-org/gitlab-shell/issues/135
Diffstat (limited to 'spec/gitlab_access_spec.rb')
-rw-r--r--spec/gitlab_access_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb
index ffaac8a..a4f633d 100644
--- a/spec/gitlab_access_spec.rb
+++ b/spec/gitlab_access_spec.rb
@@ -13,7 +13,6 @@ describe GitlabAccess do
gl_id: 'user-123',
gl_username: 'testuser',
git_config_options: ['receive.MaxInputSize=10000'],
- repository_path: '/home/git/repositories',
gitaly: nil,
git_protocol: 'version=2'))
end
@@ -51,7 +50,6 @@ describe GitlabAccess do
gl_id: nil,
gl_username: nil,
git_config_options: nil,
- repository_path: nil,
gitaly: nil,
git_protocol: nil
))