Move disable recommendations permissions to Abilities::Common model

This commit is contained in:
Angel Perez
2018-07-13 08:18:58 -04:00
parent 54853745f0
commit 31c16406c0
3 changed files with 8 additions and 1 deletions

View File

@@ -299,4 +299,10 @@ describe Abilities::Common do
it { should_not be_able_to(:answer, incoming_poll_question_from_other_geozone) }
end
end
describe "#disable_recommendations" do
it { should be_able_to(:disable_recommendations, Debate) }
it { should be_able_to(:disable_recommendations, Proposal) }
end
end