Commit 087d7e554f603faf946ea7ccb910e7b99a0801c2
1 parent
bae15dc5
Exists in
master
and in
4 other branches
Extend profile security specs
Showing
1 changed file
with
27 additions
and
0 deletions
Show diff stats
spec/features/security/profile_access_spec.rb
@@ -45,5 +45,32 @@ describe "Users Security" do | @@ -45,5 +45,32 @@ describe "Users Security" do | ||
45 | it { should be_allowed_for :user } | 45 | it { should be_allowed_for :user } |
46 | it { should be_denied_for :visitor } | 46 | it { should be_denied_for :visitor } |
47 | end | 47 | end |
48 | + | ||
49 | + describe "GET /profile/history" do | ||
50 | + subject { history_profile_path } | ||
51 | + | ||
52 | + it { should be_allowed_for @u1 } | ||
53 | + it { should be_allowed_for :admin } | ||
54 | + it { should be_allowed_for :user } | ||
55 | + it { should be_denied_for :visitor } | ||
56 | + end | ||
57 | + | ||
58 | + describe "GET /profile/notifications" do | ||
59 | + subject { profile_notifications_path } | ||
60 | + | ||
61 | + it { should be_allowed_for @u1 } | ||
62 | + it { should be_allowed_for :admin } | ||
63 | + it { should be_allowed_for :user } | ||
64 | + it { should be_denied_for :visitor } | ||
65 | + end | ||
66 | + | ||
67 | + describe "GET /profile/groups" do | ||
68 | + subject { profile_groups_path } | ||
69 | + | ||
70 | + it { should be_allowed_for @u1 } | ||
71 | + it { should be_allowed_for :admin } | ||
72 | + it { should be_allowed_for :user } | ||
73 | + it { should be_denied_for :visitor } | ||
74 | + end | ||
48 | end | 75 | end |
49 | end | 76 | end |