From 6ae6ee44ba99617c7eae0ec89913af96d67e9d69 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 14 May 2019 15:34:41 +0200 Subject: [PATCH] Let tests work correctly even if calendar based escalations is calculated over midnight. --- spec/factories/calendar.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/factories/calendar.rb b/spec/factories/calendar.rb index a0a174e4f..b0aac859b 100644 --- a/spec/factories/calendar.rb +++ b/spec/factories/calendar.rb @@ -46,31 +46,31 @@ FactoryBot.define do { mon: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, tue: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, wed: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, thu: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, fri: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, sat: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, sun: { active: true, - timeframes: [ ['00:00', '23:59'] ] + timeframes: [ ['00:00', '24:00'] ] }, } end