diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 03:48:23 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 03:48:23 +0800 |
commit | 8c1a01e05fd3c6e1621242aaf31a0ce2789ad546 (patch) | |
tree | 2d59e5858f9a3b1c9ade86c944e1670bfcb572dc /spec/lib/gitlab/git_access_spec.rb | |
parent | 2489332297b441b3ebc0c3df2e8ff14dc88a72cf (diff) | |
download | gitlab-ce-8c1a01e05fd3c6e1621242aaf31a0ce2789ad546.tar.gz |
We never check user privilege if it's a deploy key
Diffstat (limited to 'spec/lib/gitlab/git_access_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git_access_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/lib/gitlab/git_access_spec.rb b/spec/lib/gitlab/git_access_spec.rb index 9c19ea2d862..9810d79f8b4 100644 --- a/spec/lib/gitlab/git_access_spec.rb +++ b/spec/lib/gitlab/git_access_spec.rb @@ -115,10 +115,6 @@ describe Gitlab::GitAccess, lib: true do let(:key) { create(:deploy_key, user: user) } let(:actor) { key } - before do - project.team << [user, :master] - end - context 'pull code' do context 'when project is authorized' do before { key.projects << project } @@ -387,16 +383,6 @@ describe Gitlab::GitAccess, lib: true do end end - describe 'full authentication abilities' do - let(:authentication_abilities) { full_authentication_abilities } - - it_behaves_like 'pushing code', :to do - def authorize - project.team << [user, :developer] - end - end - end - describe 'build authentication abilities' do let(:authentication_abilities) { build_authentication_abilities } @@ -411,10 +397,6 @@ describe Gitlab::GitAccess, lib: true do let(:key) { create(:deploy_key, user: user, can_push: can_push) } let(:actor) { key } - before do - project.team << [user, :master] - end - context 'when deploy_key can push' do let(:can_push) { true } |