Allow undo votes in favor against component

This commit is contained in:
taitus
2023-09-20 15:23:23 +02:00
parent fd5fa2da79
commit 108a05a66d
13 changed files with 137 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ describe "Abilities::Organization" do
it { should be_able_to(:index, Debate) }
it { should be_able_to(:show, debate) }
it { should_not be_able_to(:create, user.votes.build(votable: debate)) }
it { should_not be_able_to(:destroy, user.votes.build(votable: debate)) }
it { should be_able_to(:index, Proposal) }
it { should be_able_to(:show, proposal) }