diff options
| author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-12-11 17:22:28 +0100 |
|---|---|---|
| committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-12-11 17:22:28 +0100 |
| commit | ff84530c0aa72d2a035ce64749687e559a641600 (patch) | |
| tree | 23ee8e3356a0757162b1ae48186d289a827a6688 /spec | |
| parent | 1a75d086b53d799ac10f77acfb198f2c5ea95621 (diff) | |
| download | gitlab-shell-ff84530c0aa72d2a035ce64749687e559a641600.tar.gz | |
Remove trailing slashes from gitlab_url
They do not play nice with gitlab-workhorse (or rather Golang net/http
DefaultServemux).
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/gitlab_config_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/gitlab_config_spec.rb b/spec/gitlab_config_spec.rb index 52fb182..0ce641b 100644 --- a/spec/gitlab_config_spec.rb +++ b/spec/gitlab_config_spec.rb @@ -35,6 +35,12 @@ eos it { should_not be_empty } it { should eq(url) } + + context 'remove trailing slashes' do + before { config.send(:config)['gitlab_url'] = url + '//' } + + it { should eq(url) } + end end describe :audit_usernames do |
