Remove images single uploads
This commit is contained in:
@@ -93,12 +93,7 @@ describe "Abilities::Administrator" do
|
||||
it { should be_able_to(:create, poll_question_document) }
|
||||
it { should be_able_to(:destroy, poll_question_document) }
|
||||
|
||||
it { should be_able_to(:new, proposal_image) }
|
||||
it { should be_able_to(:create, proposal_image) }
|
||||
it { should be_able_to(:destroy, proposal_image) }
|
||||
|
||||
it { should be_able_to(:new, budget_investment_image) }
|
||||
it { should be_able_to(:create, budget_investment_image) }
|
||||
it { should be_able_to(:destroy, budget_investment_image) }
|
||||
|
||||
end
|
||||
|
||||
@@ -108,20 +108,10 @@ describe "Abilities::Common" do
|
||||
it { should_not be_able_to(:create, budget_investment_document) }
|
||||
it { should_not be_able_to(:destroy, budget_investment_document) }
|
||||
|
||||
it { should be_able_to(:new, own_proposal_image) }
|
||||
it { should be_able_to(:create, own_proposal_image) }
|
||||
it { should be_able_to(:destroy, own_proposal_image) }
|
||||
|
||||
it { should_not be_able_to(:new, proposal_image) }
|
||||
it { should_not be_able_to(:create, proposal_image) }
|
||||
it { should_not be_able_to(:destroy, proposal_image) }
|
||||
|
||||
it { should be_able_to(:new, own_budget_investment_image) }
|
||||
it { should be_able_to(:create, own_budget_investment_image) }
|
||||
it { should be_able_to(:destroy, own_budget_investment_image) }
|
||||
|
||||
it { should_not be_able_to(:new, budget_investment_image) }
|
||||
it { should_not be_able_to(:create, budget_investment_image) }
|
||||
it { should_not be_able_to(:destroy, budget_investment_image) }
|
||||
|
||||
describe 'flagging content' do
|
||||
|
||||
Reference in New Issue
Block a user