diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-11-17 15:35:05 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2017-11-17 17:22:36 +0300 |
commit | 4dd9988470fdf2d7e122579602491327697c0f93 (patch) | |
tree | 409789258877bde6c736ea8b0fa3a634a1cb02a7 /spec | |
parent | 9f62c6791381be14000168d098ab867015db6c4b (diff) |
Merge branch 'dm-go-get-blank-enabled-protocol' into 'master'
Fix go-import meta data when enabled_git_access_protocol is a blank string
Closes #40256
See merge request gitlab-org/gitlab-ce!15448
(cherry picked from commit 69dd59aec9e5f8959fa36eb74db28d71aad4212b)
f767dd4a Fix go-import meta data when enabled_git_access_protocol is a blank string
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/middleware/go_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/middleware/go_spec.rb b/spec/lib/gitlab/middleware/go_spec.rb index 67121937398..60a134be939 100644 --- a/spec/lib/gitlab/middleware/go_spec.rb +++ b/spec/lib/gitlab/middleware/go_spec.rb @@ -127,6 +127,14 @@ describe Gitlab::Middleware::Go do include_examples 'go-get=1', enabled_protocol: nil end + + context 'with nothing disabled (blank string)' do + before do + stub_application_setting(enabled_git_access_protocol: '') + end + + include_examples 'go-get=1', enabled_protocol: nil + end end def go |