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.
This commit is contained in:
Kristina Lim
2019-03-22 04:59:21 +08:00
parent 78aa9da2cf
commit 46d63f43b9

View File

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