Remove TODO's from code, write reminder action on related issue

This commit is contained in:
Bertocq
2018-01-09 23:53:09 +01:00
parent c4e0178947
commit baa3c5280f

View File

@@ -535,41 +535,29 @@ end
section "Creating polls" do section "Creating polls" do
Poll.create(name: "Current Poll", Poll.create(name: "Current Poll",
# TODO: Uncomment when Poll get slugs
# slug: "current-poll",
starts_at: 7.days.ago, starts_at: 7.days.ago,
ends_at: 7.days.from_now, ends_at: 7.days.from_now,
geozone_restricted: false) geozone_restricted: false)
Poll.create(name: "Current Poll Geozone Restricted", Poll.create(name: "Current Poll Geozone Restricted",
# TODO: Uncomment when Poll get slugs
# slug: "current-poll-geozone-restricted",
starts_at: 5.days.ago, starts_at: 5.days.ago,
ends_at: 5.days.from_now, ends_at: 5.days.from_now,
geozone_restricted: true, geozone_restricted: true,
geozones: Geozone.reorder("RANDOM()").limit(3)) geozones: Geozone.reorder("RANDOM()").limit(3))
Poll.create(name: "Incoming Poll", Poll.create(name: "Incoming Poll",
# TODO: Uncomment when Poll get slugs
# slug: "incoming-poll",
starts_at: 1.month.from_now, starts_at: 1.month.from_now,
ends_at: 2.months.from_now) ends_at: 2.months.from_now)
Poll.create(name: "Recounting Poll", Poll.create(name: "Recounting Poll",
# TODO: Uncomment when Poll get slugs
# slug: "recounting-poll",
starts_at: 15.days.ago, starts_at: 15.days.ago,
ends_at: 2.days.ago) ends_at: 2.days.ago)
Poll.create(name: "Expired Poll without Stats & Results", Poll.create(name: "Expired Poll without Stats & Results",
# TODO: Uncomment when Poll get slugs
# slug: "expired-poll-without-stats-and-results",
starts_at: 2.months.ago, starts_at: 2.months.ago,
ends_at: 1.month.ago) ends_at: 1.month.ago)
Poll.create(name: "Expired Poll with Stats & Results", Poll.create(name: "Expired Poll with Stats & Results",
# TODO: Uncomment when Poll get slugs
# slug: "expired-poll-with-stats-and-results",
starts_at: 2.months.ago, starts_at: 2.months.ago,
ends_at: 1.month.ago, ends_at: 1.month.ago,
results_enabled: true, results_enabled: true,