diff --git a/spec/controllers/recurring_bookings_spec.cr b/spec/controllers/recurring_bookings_spec.cr index cfbe28f..cf6e496 100644 --- a/spec/controllers/recurring_bookings_spec.cr +++ b/spec/controllers/recurring_bookings_spec.cr @@ -29,6 +29,14 @@ describe Bookings do booking1.booking_end = (Time.local.at_beginning_of_day + 10.hours).to_unix booking1.save! + booking2.booking_start = (Time.local.at_beginning_of_day + 8.hours).to_unix + booking2.booking_end = (Time.local.at_beginning_of_day + 10.hours).to_unix + booking2.save! + + booking3.booking_start = (Time.local.at_beginning_of_day + 8.hours).to_unix + booking3.booking_end = (Time.local.at_beginning_of_day + 10.hours).to_unix + booking3.save! + starting = Time.local.at_beginning_of_day.to_unix ending = 4.days.from_now.to_unix