DEV: let's not introduce time-based heisentests

DEV: let’s not introduce time-based heisentests

diff --git a/spec/jobs/check_next_regional_holidays_spec.rb b/spec/jobs/check_next_regional_holidays_spec.rb
index 832a47c..1bc8a9e 100644
--- a/spec/jobs/check_next_regional_holidays_spec.rb
+++ b/spec/jobs/check_next_regional_holidays_spec.rb
@@ -72,6 +72,8 @@ describe DiscourseCalendar::CheckNextRegionalHolidays do
   end
 
   it "only takes into account active users" do
+    freeze_time Time.new(2019, 8, 1)
+
     robot = Fabricate(:user, id: -100)
     robot.custom_fields[DiscourseCalendar::REGION_CUSTOM_FIELD] = "fr"
     robot.save!
@@ -88,8 +90,6 @@ describe DiscourseCalendar::CheckNextRegionalHolidays do
     silenced.custom_fields[DiscourseCalendar::REGION_CUSTOM_FIELD] = "fr"
     silenced.save!
 
-    freeze_time Time.new(2019, 8, 1)
-
     subject.execute(nil)
     @op.reload

GitHub sha: 0a1e7346

1 Like