summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git_access_spec.rb
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-22 11:28:51 -0700
committerMichael Kozono <mkozono@gmail.com>2017-06-05 05:32:26 -0700
commite8972c11904c31fc614a31483098814adc38c2ac (patch)
tree9be9df9741598627ff8ac89a934ec23ef878d3d8 /spec/lib/gitlab/git_access_spec.rb
parent23d37382dabe3f7c7f2e11df2731de8e939e0cab (diff)
downloadgitlab-ce-e8972c11904c31fc614a31483098814adc38c2ac.tar.gz
Clarify error messages
And refactor to self-document a little better.
Diffstat (limited to 'spec/lib/gitlab/git_access_spec.rb')
-rw-r--r--spec/lib/gitlab/git_access_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/git_access_spec.rb b/spec/lib/gitlab/git_access_spec.rb
index 10a7222c2b6..36d1d777583 100644
--- a/spec/lib/gitlab/git_access_spec.rb
+++ b/spec/lib/gitlab/git_access_spec.rb
@@ -170,7 +170,7 @@ describe Gitlab::GitAccess, lib: true do
end
context 'when calling git-upload-pack' do
- it { expect { pull_access_check }.to raise_unauthorized('The command "git-upload-pack" is not allowed.') }
+ it { expect { pull_access_check }.to raise_unauthorized('Pulling over HTTP is not allowed.') }
end
context 'when calling git-receive-pack' do
@@ -184,7 +184,7 @@ describe Gitlab::GitAccess, lib: true do
end
context 'when calling git-receive-pack' do
- it { expect { push_access_check }.to raise_unauthorized('The command "git-receive-pack" is not allowed.') }
+ it { expect { push_access_check }.to raise_unauthorized('Pushing over HTTP is not allowed.') }
end
context 'when calling git-upload-pack' do