From d047e04e33b970c94c544cfb37a574f8ca297b57 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Fri, 22 Mar 2019 01:31:20 +0800 Subject: [PATCH] Customize addresses for subscriptions in specs This forces us to write correct assertions when adding specs affected by subscription addresses. --- spec/factories.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/factories.rb b/spec/factories.rb index 9bdd09933b..6bd576e28c 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -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 }