diff options
author | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 16:21:51 +0200 |
---|---|---|
committer | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 16:21:51 +0200 |
commit | a8e93b7f51d968c1380ed210499869b62b07fd15 (patch) | |
tree | c864e80dfd9cf4f83fcede678acc986e3a125bf5 /spec/features/security/dashboard_access_spec.rb | |
parent | 0625b15a481b3a3edd88110b3c18031ad9068d2f (diff) | |
download | gitlab-ce-7.10.0.rc5.tar.gz |
Version 7.10.0.rc5v7.10.0.rc5
Diffstat (limited to 'spec/features/security/dashboard_access_spec.rb')
-rw-r--r-- | spec/features/security/dashboard_access_spec.rb | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/spec/features/security/dashboard_access_spec.rb b/spec/features/security/dashboard_access_spec.rb deleted file mode 100644 index 67238e3ab76..00000000000 --- a/spec/features/security/dashboard_access_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -require 'spec_helper' - -describe "Dashboard access", feature: true do - describe "GET /dashboard" do - subject { dashboard_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end - - describe "GET /dashboard/issues" do - subject { issues_dashboard_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end - - describe "GET /dashboard/merge_requests" do - subject { merge_requests_dashboard_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end - - describe "GET /dashboard/projects/starred" do - subject { starred_dashboard_projects_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end - - describe "GET /help" do - subject { help_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end - - describe "GET /projects/new" do - it { expect(new_project_path).to be_allowed_for :admin } - it { expect(new_project_path).to be_allowed_for :user } - it { expect(new_project_path).to be_denied_for :visitor } - end - - describe "GET /groups/new" do - it { expect(new_group_path).to be_allowed_for :admin } - it { expect(new_group_path).to be_allowed_for :user } - it { expect(new_group_path).to be_denied_for :visitor } - end - - describe "GET /profile/groups" do - subject { dashboard_groups_path } - - it { is_expected.to be_allowed_for :admin } - it { is_expected.to be_allowed_for :user } - it { is_expected.to be_denied_for :visitor } - end -end |