Added specs and fixed some issues found after executing them
This commit is contained in:
Juan Salvador Pérez García
2018-06-26 12:09:36 +02:00
parent 2ce9f95283
commit 2be107f4da
7 changed files with 85 additions and 5 deletions

View File

@@ -166,6 +166,11 @@ describe Abilities::Common do
it { should_not be_able_to(:dashboard, proposal) }
end
describe 'proposal polls' do
it { should be_able_to(:manage_polls, own_proposal) }
it { should_not be_able_to(:manage_polls, proposal) }
end
describe 'publishing proposals' do
let(:draft_own_proposal) { create(:proposal, :draft, author: user) }