Fix flaky spec in budget supports admin stats

The test that was not passing sometimes since commit 915999db4 because
we no longer created the budget before visiting the page that loads it.
So now we're forcing its creation with `let!`.
This commit is contained in:
taitus
2023-02-21 10:43:28 +01:00
committed by Javi Martín
parent 2dc10f4884
commit 1ea5b699cf

View File

@@ -88,7 +88,7 @@ describe "Stats", :admin do
describe "Budget investments" do
context "Supporting phase" do
let(:budget) { create(:budget) }
let!(:budget) { create(:budget) }
let(:heading_all_city) { create(:budget_heading, budget: budget) }
scenario "Number of users and supports in investment projects" do