Allow undo votes in favor against component
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user