diff --git a/ecommerce/pricing/lib/pricing/promotions_calendar.rb b/ecommerce/pricing/lib/pricing/promotions_calendar.rb index 817d9aca..70b61e5e 100644 --- a/ecommerce/pricing/lib/pricing/promotions_calendar.rb +++ b/ecommerce/pricing/lib/pricing/promotions_calendar.rb @@ -45,9 +45,8 @@ def initialize(start_time, end_time, discount) end def running?(timestamp) - (@start_time...@end_time).include?(timestamp) + (@start_time...@end_time).cover?(timestamp) end - end end end