mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user