Fix post checkout actions spec

This commit is contained in:
Luis Ramos
2020-09-28 13:31:00 +01:00
parent 26946ec102
commit a942218708

View File

@@ -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)