We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90cbba0 commit 818d7adCopy full SHA for 818d7ad
spec/policies/request_for_comment_policy_spec.rb
@@ -94,13 +94,10 @@
94
end
95
96
shared_examples 'grants access to everyone but the author' do
97
- it 'grants access to everyone' do
+ it 'grants access to everyone but the author' do
98
%i[external_user teacher admin].each do |factory_name|
99
expect(policy).to permit(create(factory_name, consumer: viewer_consumer, study_groups: viewer_study_groups), rfc)
100
101
- end
102
-
103
- it 'does not grant access to authors' do
104
expect(policy).not_to permit(rfc.author, rfc)
105
106
0 commit comments