adds abilities for SpendingProposals

This commit is contained in:
Juanjo Bazán
2015-12-30 14:18:44 +01:00
committed by Juanjo Bazán
parent fe32162c9f
commit 2c36ceb10c
6 changed files with 12 additions and 4 deletions

View File

@@ -28,6 +28,9 @@ describe "Abilities::Common" do
it { should_not be_able_to(:vote, Proposal) }
it { should_not be_able_to(:vote_featured, Proposal) }
it { should be_able_to(:index, SpendingProposal) }
it { should be_able_to(:create, SpendingProposal) }
it { should_not be_able_to(:comment_as_administrator, debate) }
it { should_not be_able_to(:comment_as_moderator, debate) }
it { should_not be_able_to(:comment_as_administrator, proposal) }