mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Customize addresses for subscriptions in specs
This forces us to write correct assertions when adding specs affected by subscription addresses.
This commit is contained in:
@@ -142,8 +142,8 @@ FactoryBot.define do
|
||||
shop { create :enterprise }
|
||||
schedule { create(:schedule, order_cycles: [create(:simple_order_cycle, coordinator: shop)]) }
|
||||
customer { create(:customer, enterprise: shop) }
|
||||
bill_address { create(:address) }
|
||||
ship_address { create(:address) }
|
||||
bill_address { create(:address, firstname: "Walter", lastname: "Wolf", address1: "White") }
|
||||
ship_address { create(:address, firstname: "Melanie", lastname: "Miller", address1: "Magenta") }
|
||||
payment_method { create(:payment_method, distributors: [shop]) }
|
||||
shipping_method { create(:shipping_method, distributors: [shop]) }
|
||||
begins_at { 1.month.ago }
|
||||
|
||||
Reference in New Issue
Block a user