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:
Kristina Lim
2019-03-22 01:31:20 +08:00
parent 3ab00d862e
commit d047e04e33

View File

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