From a94221870872c01aecced6f76941ed3e01f13aa2 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Mon, 28 Sep 2020 13:31:00 +0100 Subject: [PATCH] Fix post checkout actions spec --- spec/services/checkout/post_checkout_actions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/checkout/post_checkout_actions_spec.rb b/spec/services/checkout/post_checkout_actions_spec.rb index e1a27a20fb..4c5ee6a1c2 100644 --- a/spec/services/checkout/post_checkout_actions_spec.rb +++ b/spec/services/checkout/post_checkout_actions_spec.rb @@ -24,7 +24,7 @@ describe Checkout::PostCheckoutActions do end describe "setting customer terms_and_conditions_accepted_at" do - before { order.customer = build_stubbed(:customer) } + before { order.customer = build(:customer) } it "does not set customer's terms_and_conditions to the current time if terms have not been accepted" do postCheckoutActions.success(controller, params, current_user)