Simplify setting up poll geozones in test/dev data

This commit is contained in:
Javi Martín
2023-07-19 15:10:30 +02:00
parent 025f3ad210
commit 016595fd80
7 changed files with 22 additions and 23 deletions

View File

@@ -20,8 +20,7 @@ section "Creating polls" do
slug: I18n.t("seeds.polls.current_poll_geozone_restricted").parameterize,
starts_at: 5.days.ago,
ends_at: 5.days.from_now,
geozone_restricted: true,
geozones: Geozone.sample(3))
geozone_restricted_to: Geozone.sample(3))
create_poll!(name: I18n.t("seeds.polls.recounting_poll"),
slug: I18n.t("seeds.polls.recounting_poll").parameterize,