Delete valuation

This commit is contained in:
voodoorai2000
2019-03-19 10:59:20 +01:00
parent a932737881
commit 24dde9c35e
28 changed files with 10 additions and 782 deletions

View File

@@ -21,9 +21,11 @@ describe Abilities::Valuator do
finished_assigned_investment.valuators << valuator
end
it { should be_able_to(:read, SpendingProposal) }
it { should be_able_to(:update, SpendingProposal) }
it { should be_able_to(:valuate, SpendingProposal) }
it "cannot valuate an assigned investment with a finished valuation" do
assigned_investment.update(valuation_finished: true)
should_not be_able_to(:valuate, assigned_investment)
end
it "cannot valuate an assigned investment with a finished valuation" do
assigned_investment.update(valuation_finished: true)