diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-01-23 18:51:16 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-06 14:51:18 -0600 |
commit | 60045195462562c985c6a3a70c899adfe04be2f5 (patch) | |
tree | 083e0c291c832acf7f472d052aa2414064ba1f28 /spec/features/security | |
parent | 8ffe586b778b905f57382485140efea4c3dcad93 (diff) | |
download | gitlab-ce-60045195462562c985c6a3a70c899adfe04be2f5.tar.gz |
Fixed tests, renamed files and methods
Diffstat (limited to 'spec/features/security')
-rw-r--r-- | spec/features/security/project/private_access_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/security/project/private_access_spec.rb b/spec/features/security/project/private_access_spec.rb index 1e0f6fa2b48..c511dcfa18e 100644 --- a/spec/features/security/project/private_access_spec.rb +++ b/spec/features/security/project/private_access_spec.rb @@ -82,6 +82,20 @@ describe "Private Project Access", feature: true do it { is_expected.to be_denied_for(:visitor) } end + describe "GET /:project_path/settings/members" do + subject { namespace_project_settings_members_path(project.namespace, project) } + + it { is_expected.to be_allowed_for(:admin) } + it { is_expected.to be_allowed_for(:owner).of(project) } + it { is_expected.to be_allowed_for(:master).of(project) } + it { is_expected.to be_allowed_for(:developer).of(project) } + it { is_expected.to be_allowed_for(:reporter).of(project) } + it { is_expected.to be_allowed_for(:guest).of(project) } + it { is_expected.to be_denied_for(:user) } + it { is_expected.to be_denied_for(:visitor) } + it { is_expected.to be_denied_for(:external) } + end + describe "GET /:project_path/settings/ci_cd" do subject { namespace_project_settings_ci_cd_path(project.namespace, project) } |