changes abilities extending valuation period
This commit is contained in:
@@ -10,8 +10,8 @@ describe "Abilities::Valuator" do
|
||||
let(:assigned_investment) { create(:budget_investment, budget: create(:budget, phase: 'valuating')) }
|
||||
before(:each) { assigned_investment.valuators << valuator }
|
||||
|
||||
let(:assigned_investment_not_valuating) { create(:budget_investment, budget: create(:budget, phase: 'finished')) }
|
||||
before(:each) { assigned_investment_not_valuating.valuators << valuator }
|
||||
let(:finished_assigned_investment) { create(:budget_investment, budget: create(:budget, phase: 'finished')) }
|
||||
before(:each) { finished_assigned_investment.valuators << valuator }
|
||||
|
||||
it { should be_able_to(:read, SpendingProposal) }
|
||||
it { should be_able_to(:update, SpendingProposal) }
|
||||
@@ -23,6 +23,6 @@ describe "Abilities::Valuator" do
|
||||
it { should be_able_to(:update, assigned_investment) }
|
||||
it { should be_able_to(:valuate, assigned_investment) }
|
||||
|
||||
it { should_not be_able_to(:update, assigned_investment_not_valuating) }
|
||||
it { should_not be_able_to(:valuate, assigned_investment_not_valuating) }
|
||||
it { should_not be_able_to(:update, finished_assigned_investment) }
|
||||
it { should_not be_able_to(:valuate, finished_assigned_investment) }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user