Use budget phase traits

We were already using them in many places, but not everywhere.
This commit is contained in:
Javi Martín
2019-09-21 16:48:35 +02:00
parent cced12c3a0
commit aeb1655961
15 changed files with 51 additions and 51 deletions

View File

@@ -76,8 +76,8 @@ describe Abilities::Administrator do
it { should be_able_to(:update, Budget::Investment) }
it { should be_able_to(:hide, Budget::Investment) }
it { should be_able_to(:valuate, create(:budget_investment, budget: create(:budget, phase: "valuating"))) }
it { should be_able_to(:valuate, create(:budget_investment, budget: create(:budget, phase: "finished"))) }
it { should be_able_to(:valuate, create(:budget_investment, budget: create(:budget, :valuating))) }
it { should be_able_to(:valuate, create(:budget_investment, budget: create(:budget, :finished))) }
it { should be_able_to(:destroy, proposal_image) }
it { should be_able_to(:destroy, proposal_document) }