diff --git a/spec/listeners/reporting_event_listener_spec.rb b/spec/listeners/reporting_event_listener_spec.rb index 373beb276..9577f87b2 100644 --- a/spec/listeners/reporting_event_listener_spec.rb +++ b/spec/listeners/reporting_event_listener_spec.rb @@ -41,7 +41,7 @@ describe ReportingEventListener do events = account.reporting_events.where(name: 'reply_time', conversation_id: message.conversation_id) expect(events.length).to be 1 - expect(events.first.value).to eq 7200 + expect(events.first.value).to be_within(1).of(7200) end end