Add load_and_authorize_resource to answers controller

This commit is contained in:
taitus
2022-09-09 16:29:04 +02:00
parent 405b37f605
commit cb2958e1b0
3 changed files with 7 additions and 4 deletions

View File

@@ -114,6 +114,8 @@ describe Abilities::Administrator do
it { should be_able_to(:create, Poll::Question) }
it { should be_able_to(:update, Poll::Question) }
it { should be_able_to(:manage, Poll::Question::Answer) }
it { is_expected.to be_able_to :manage, Dashboard::AdministratorTask }
it { is_expected.to be_able_to :manage, dashboard_administrator_task }