Skip to content

Commit 818d7ad

Browse files
arkirchnernenock
andauthored
Update spec/policies/request_for_comment_policy_spec.rb
Co-authored-by: Nele Sina Noack <[email protected]>
1 parent 90cbba0 commit 818d7ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/policies/request_for_comment_policy_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@
9494
end
9595

9696
shared_examples 'grants access to everyone but the author' do
97-
it 'grants access to everyone' do
97+
it 'grants access to everyone but the author' do
9898
%i[external_user teacher admin].each do |factory_name|
9999
expect(policy).to permit(create(factory_name, consumer: viewer_consumer, study_groups: viewer_study_groups), rfc)
100100
end
101-
end
102-
103-
it 'does not grant access to authors' do
104101
expect(policy).not_to permit(rfc.author, rfc)
105102
end
106103

0 commit comments

Comments
 (0)