Use budget phase traits
We were already using them in many places, but not everywhere.
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user