Skip to content

Commit

Permalink
Fix flaky spec in budget supports admin stats
Browse files Browse the repository at this point in the history
The test that was not passing sometimes since commit 915999d because
we no longer created the budget before visiting the page that loads it.
So now we're forcing its creation with `let!`.
  • Loading branch information
taitus authored and javierm committed Feb 21, 2023
1 parent 2dc10f4 commit 1ea5b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/system/admin/stats_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

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
Expand Down

0 comments on commit 1ea5b69

Please sign in to comment.