Implements a poster feature for the proposals dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-07-31 12:50:25 +02:00
parent 06fbc8bbb4
commit 6cc1ddb9af
34 changed files with 502 additions and 115 deletions

View File

@@ -180,6 +180,11 @@ describe Abilities::Common do
it { should_not be_able_to(:manage_mailing, proposal) }
end
describe 'proposal poster' do
it { should be_able_to(:manage_poster, own_proposal) }
it { should_not be_able_to(:manage_poster, proposal) }
end
describe 'publishing proposals' do
let(:draft_own_proposal) { create(:proposal, :draft, author: user) }