From 46d63f43b9edebf4d2cbd11dc92a80894228381b Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Fri, 22 Mar 2019 04:59:21 +0800 Subject: [PATCH] Update check for pickup address manipulation The way that the bill contact details and distributor address are set for pickup orders has changed. At this point, after before_save_hook is called, the bill contact details have already been set as well. --- spec/models/order_updater_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/order_updater_spec.rb b/spec/models/order_updater_spec.rb index 9eec3a1232..40a12a9119 100644 --- a/spec/models/order_updater_spec.rb +++ b/spec/models/order_updater_spec.rb @@ -131,7 +131,7 @@ describe OrderUpdater do it "populates the shipping address from distributor" do order_updater.before_save_hook - expect(order.ship_address.firstname).to eq(distributor.address.firstname) + expect(order.ship_address.address1).to eq(distributor.address.address1) end end