From 1893a251e1e4898d691841a9d15363afd9656d70 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Fri, 2 Jun 2023 09:33:47 -0500 Subject: [PATCH] Make fake processor on_grace_period? consistent with other implementations --- lib/pay/fake_processor/subscription.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pay/fake_processor/subscription.rb b/lib/pay/fake_processor/subscription.rb index ac3fe0b06..62f122805 100644 --- a/lib/pay/fake_processor/subscription.rb +++ b/lib/pay/fake_processor/subscription.rb @@ -49,7 +49,7 @@ def change_quantity(quantity, **options) end def on_grace_period? - canceled? && Time.current < ends_at + ends_at? && ends_at > Time.current end def paused?