Allow to remove budget investment image from edit image page to authors and administrators.
This commit is contained in:
@@ -236,6 +236,7 @@ describe "Abilities::Common" do
|
||||
it { should_not be_able_to(:create, ballot_in_selecting_budget) }
|
||||
it { should be_able_to(:create, ballot_in_balloting_budget) }
|
||||
|
||||
|
||||
it { should be_able_to(:edit_image, own_investment_in_accepting_budget) }
|
||||
it { should be_able_to(:edit_image, own_investment_in_reviewing_budget) }
|
||||
it { should be_able_to(:edit_image, own_investment_in_selecting_budget) }
|
||||
@@ -244,6 +245,10 @@ describe "Abilities::Common" do
|
||||
it { should be_able_to(:update_image, own_investment_in_reviewing_budget) }
|
||||
it { should be_able_to(:update_image, own_investment_in_selecting_budget) }
|
||||
it { should be_able_to(:update_image, own_investment_in_balloting_budget) }
|
||||
it { should be_able_to(:remove_image, own_investment_in_accepting_budget) }
|
||||
it { should be_able_to(:remove_image, own_investment_in_reviewing_budget) }
|
||||
it { should be_able_to(:remove_image, own_investment_in_selecting_budget) }
|
||||
it { should be_able_to(:remove_image, own_investment_in_balloting_budget) }
|
||||
|
||||
it { should_not be_able_to(:edit_image, investment_in_accepting_budget) }
|
||||
it { should_not be_able_to(:edit_image, investment_in_reviewing_budget) }
|
||||
@@ -253,6 +258,10 @@ describe "Abilities::Common" do
|
||||
it { should_not be_able_to(:update_image, investment_in_reviewing_budget) }
|
||||
it { should_not be_able_to(:update_image, investment_in_selecting_budget) }
|
||||
it { should_not be_able_to(:update_image, investment_in_balloting_budget) }
|
||||
it { should_not be_able_to(:remove_image, investment_in_accepting_budget) }
|
||||
it { should_not be_able_to(:remove_image, investment_in_reviewing_budget) }
|
||||
it { should_not be_able_to(:remove_image, investment_in_selecting_budget) }
|
||||
it { should_not be_able_to(:remove_image, investment_in_balloting_budget) }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user