|
103 | 103 | let(:viewer_study_groups) { create_list(:study_group, 1, consumer: viewer_consumer) } |
104 | 104 |
|
105 | 105 | permissions(:show?) do |
106 | | - include_examples 'grants access to everyone' |
| 106 | + it_behaves_like 'grants access to everyone' |
107 | 107 | end |
108 | 108 |
|
109 | 109 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
110 | 110 | permissions(action) do |
111 | | - include_examples 'grants access to admins and authors only' |
| 111 | + it_behaves_like 'grants access to admins and authors only' |
112 | 112 | end |
113 | 113 | end |
114 | 114 | end |
|
119 | 119 |
|
120 | 120 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
121 | 121 | permissions(action) do |
122 | | - include_examples 'grants access to admins and authors only' |
| 122 | + it_behaves_like 'grants access to admins and authors only' |
123 | 123 | end |
124 | 124 | end |
125 | 125 | end |
|
130 | 130 |
|
131 | 131 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
132 | 132 | permissions(action) do |
133 | | - include_examples 'grants access to admins and authors only' |
| 133 | + it_behaves_like 'grants access to admins and authors only' |
134 | 134 | end |
135 | 135 | end |
136 | 136 | end |
|
143 | 143 | let(:viewer_study_groups) { create_list(:study_group, 1, consumer: viewer_consumer) } |
144 | 144 |
|
145 | 145 | permissions(:show?) do |
146 | | - include_examples 'grants access to everyone' |
| 146 | + it_behaves_like 'grants access to everyone' |
147 | 147 | end |
148 | 148 |
|
149 | 149 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
150 | 150 | permissions(action) do |
151 | | - include_examples 'grants access to admins and authors only' |
| 151 | + it_behaves_like 'grants access to admins and authors only' |
152 | 152 | end |
153 | 153 | end |
154 | 154 | end |
|
157 | 157 | let(:viewer_study_groups) { author_study_groups } |
158 | 158 |
|
159 | 159 | permissions(:show?) do |
160 | | - include_examples 'grants access to everyone' |
| 160 | + it_behaves_like 'grants access to everyone' |
161 | 161 | end |
162 | 162 |
|
163 | 163 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
164 | 164 | permissions(action) do |
165 | | - include_examples 'grants access to admins and authors only' |
| 165 | + it_behaves_like 'grants access to admins and authors only' |
166 | 166 | end |
167 | 167 | end |
168 | 168 | end |
|
179 | 179 |
|
180 | 180 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
181 | 181 | permissions(action) do |
182 | | - include_examples 'grants access to admins and authors only' |
| 182 | + it_behaves_like 'grants access to admins and authors only' |
183 | 183 | end |
184 | 184 | end |
185 | 185 | end |
|
190 | 190 |
|
191 | 191 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
192 | 192 | permissions(action) do |
193 | | - include_examples 'grants access to admins and authors only' |
| 193 | + it_behaves_like 'grants access to admins and authors only' |
194 | 194 | end |
195 | 195 | end |
196 | 196 | end |
|
201 | 201 |
|
202 | 202 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
203 | 203 | permissions(action) do |
204 | | - include_examples 'grants access to admins and authors only' |
| 204 | + it_behaves_like 'grants access to admins and authors only' |
205 | 205 | end |
206 | 206 | end |
207 | 207 | end |
|
214 | 214 | let(:viewer_study_groups) { create_list(:study_group, 1, consumer: viewer_consumer) } |
215 | 215 |
|
216 | 216 | permissions(:show?) do |
217 | | - include_examples 'grants access to everyone' |
| 217 | + it_behaves_like 'grants access to everyone' |
218 | 218 | end |
219 | 219 |
|
220 | 220 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
221 | 221 | permissions(action) do |
222 | | - include_examples 'grants access to admins and authors only' |
| 222 | + it_behaves_like 'grants access to admins and authors only' |
223 | 223 | end |
224 | 224 | end |
225 | 225 | end |
|
228 | 228 | let(:viewer_study_groups) { author_study_groups } |
229 | 229 |
|
230 | 230 | permissions(:show?) do |
231 | | - include_examples 'grants access to everyone' |
| 231 | + it_behaves_like 'grants access to everyone' |
232 | 232 | end |
233 | 233 |
|
234 | 234 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
235 | 235 | permissions(action) do |
236 | | - include_examples 'grants access to admins and authors only' |
| 236 | + it_behaves_like 'grants access to admins and authors only' |
237 | 237 | end |
238 | 238 | end |
239 | 239 | end |
|
250 | 250 |
|
251 | 251 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
252 | 252 | permissions(action) do |
253 | | - include_examples 'grants access to admins and authors only' |
| 253 | + it_behaves_like 'grants access to admins and authors only' |
254 | 254 | end |
255 | 255 | end |
256 | 256 | end |
|
261 | 261 |
|
262 | 262 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
263 | 263 | permissions(action) do |
264 | | - include_examples 'grants access to admins and authors only' |
| 264 | + it_behaves_like 'grants access to admins and authors only' |
265 | 265 | end |
266 | 266 | end |
267 | 267 | end |
|
272 | 272 |
|
273 | 273 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
274 | 274 | permissions(action) do |
275 | | - include_examples 'grants access to admins and authors only' |
| 275 | + it_behaves_like 'grants access to admins and authors only' |
276 | 276 | end |
277 | 277 | end |
278 | 278 | end |
|
286 | 286 |
|
287 | 287 | %i[mark_as_solved? set_thank_you_note? show?].each do |action| |
288 | 288 | permissions(action) do |
289 | | - include_examples 'grants access to admins and authors only' |
| 289 | + it_behaves_like 'grants access to admins and authors only' |
290 | 290 | end |
291 | 291 | end |
292 | 292 | end |
|
295 | 295 | let(:viewer_study_groups) { author_study_groups } |
296 | 296 |
|
297 | 297 | permissions(:show?) do |
298 | | - include_examples 'grants access to everyone' |
| 298 | + it_behaves_like 'grants access to everyone' |
299 | 299 | end |
300 | 300 |
|
301 | 301 | %i[mark_as_solved? set_thank_you_note?].each do |action| |
302 | 302 | permissions(action) do |
303 | | - include_examples 'grants access to admins and authors only' |
| 303 | + it_behaves_like 'grants access to admins and authors only' |
304 | 304 | end |
305 | 305 | end |
306 | 306 | end |
|
0 commit comments