From 26b5f45564fb3b1f022f67e1faccbcca3a924e10 Mon Sep 17 00:00:00 2001 From: David Roetzel Date: Mon, 10 Mar 2025 10:33:37 +0100 Subject: [PATCH] Make `Faker` generate unique TOS effective dates (#34122) --- spec/fabricators/terms_of_service_fabricator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/fabricators/terms_of_service_fabricator.rb b/spec/fabricators/terms_of_service_fabricator.rb index d37206e9d3..9b437c4d4b 100644 --- a/spec/fabricators/terms_of_service_fabricator.rb +++ b/spec/fabricators/terms_of_service_fabricator.rb @@ -5,5 +5,5 @@ Fabricator(:terms_of_service) do changelog { Faker::Lorem.paragraph } published_at { Time.zone.now } notification_sent_at { Time.zone.now } - effective_date { Faker::Date.forward } + effective_date { Faker::Date.unique.forward } end