From 549c3d339a9dff409228dc294e365cd16681ce01 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 28 Mar 2019 17:41:27 +1100 Subject: [PATCH] DEV: use eq_time which allows for 1ms fidelity This correct the specs due to changes introduced in 9ebabc1d --- spec/integration/solved_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/solved_spec.rb b/spec/integration/solved_spec.rb index 856bce0..845af00 100644 --- a/spec/integration/solved_spec.rb +++ b/spec/integration/solved_spec.rb @@ -56,7 +56,7 @@ RSpec.describe "Managing Posts solved status" do ].to_i).to eq(topic.public_topic_timer.id) expect(topic.public_topic_timer.execute_at) - .to eq(Time.zone.now + 2.hours) + .to eq_time(Time.zone.now + 2.hours) expect(topic.public_topic_timer.based_on_last_post).to eq(true) end