mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix post checkout actions spec
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user