Skip to content

Commit 27a1438

Browse files
committed
Add set_read tests to ability_spec
1 parent 27bd784 commit 27a1438

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/models/ability_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@
309309
it { is_expected.to be_able_to(:read, remixed_project) }
310310
it { is_expected.not_to be_able_to(:create, feedback) }
311311
it { is_expected.to be_able_to(:read, feedback) }
312+
it { is_expected.to be_able_to(:set_read, feedback) }
312313
it { is_expected.to be_able_to(:create, remixed_project) }
313314
it { is_expected.to be_able_to(:update, remixed_project) }
314315
it { is_expected.not_to be_able_to(:destroy, remixed_project) }
@@ -338,6 +339,7 @@
338339
it { is_expected.not_to be_able_to(:read, remixed_project) }
339340
it { is_expected.not_to be_able_to(:create, feedback) }
340341
it { is_expected.not_to be_able_to(:read, feedback) }
342+
it { is_expected.not_to be_able_to(:set_read, feedback) }
341343
it { is_expected.not_to be_able_to(:create, remixed_project) }
342344
it { is_expected.not_to be_able_to(:update, remixed_project) }
343345
it { is_expected.not_to be_able_to(:destroy, remixed_project) }
@@ -354,6 +356,7 @@
354356
it { is_expected.to be_able_to(:read, remixed_project) }
355357
it { is_expected.to be_able_to(:create, feedback) }
356358
it { is_expected.to be_able_to(:read, feedback) }
359+
it { is_expected.not_to be_able_to(:set_read, feedback) }
357360
it { is_expected.not_to be_able_to(:create, remixed_project) }
358361
it { is_expected.not_to be_able_to(:update, remixed_project) }
359362
it { is_expected.not_to be_able_to(:destroy, remixed_project) }
@@ -370,6 +373,7 @@
370373
it { is_expected.to be_able_to(:read, original_project) }
371374
it { is_expected.to be_able_to(:create, feedback) }
372375
it { is_expected.to be_able_to(:read, feedback) }
376+
it { is_expected.not_to be_able_to(:set_read, feedback) }
373377
it { is_expected.not_to be_able_to(:create, original_project) }
374378
it { is_expected.to be_able_to(:update, original_project) }
375379

0 commit comments

Comments
 (0)