From 56522045983cdef6fa37f20209f95dfb63413228 Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Wed, 2 Mar 2022 08:56:07 +1100 Subject: [PATCH] Fix a test using local time rather than UTC --- spec/lib/identity_nation_builder_pull_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/identity_nation_builder_pull_spec.rb b/spec/lib/identity_nation_builder_pull_spec.rb index 75c8614..14330e3 100644 --- a/spec/lib/identity_nation_builder_pull_spec.rb +++ b/spec/lib/identity_nation_builder_pull_spec.rb @@ -87,7 +87,7 @@ IdentityNationBuilder.fetch_new_events(@sync_id) {} Event.update_all(updated_at: 3.days.ago) IdentityNationBuilder.fetch_new_events(@sync_id) {} - expect(Event.first.updated_at.to_date).to eq(Date.today) + expect(Event.first.updated_at.to_date).to eq(Time.now.utc.to_date) end end