From 5cc5fd9064294b5fda5b1fea2a973162d7023aa0 Mon Sep 17 00:00:00 2001 From: voodoorai2000 Date: Thu, 7 Feb 2019 13:04:12 +0100 Subject: [PATCH] Update specs We now have a dependency on this spec, added in a previous PR[1]. This is due the spec indirectly creating a Comment object[1] that requires the spending proposal to have an administrator. We could separate the rake task to deal with the initial PR requirements and this PR's requirements. But we should put it all in a single rake task when everything is ready. So just fixing the spec for now. [1] https://github.com/AyuntamientoMadrid/consul/pull/1853 --- spec/lib/migrations/spending_proposals/budget_investment_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/lib/migrations/spending_proposals/budget_investment_spec.rb b/spec/lib/migrations/spending_proposals/budget_investment_spec.rb index 48941a681c0..eb1122135f2 100644 --- a/spec/lib/migrations/spending_proposals/budget_investment_spec.rb +++ b/spec/lib/migrations/spending_proposals/budget_investment_spec.rb @@ -58,6 +58,7 @@ spending_proposal.feasible = false spending_proposal.valuation_finished = true + spending_proposal.update(administrator: create(:administrator)) spending_proposal.save(validate: false)