spree-contrib / spree_drop_ship

Spree Drop Shipping Extension
BSD 3-Clause "New" or "Revised" License
104 stars 120 forks source link

Supplier Email Never Sent #43

Closed jwickard closed 10 years ago

jwickard commented 10 years ago

Association cache was not reloaded on order_decorator after creating drop ship orders through supplier object in create_drop_ship_orders.

This will be empty in finalize_with_drop_ship! when we try to iterate through drop ship orders to send supplier email. added flag to force association reload & send email.

Existing Test passed because association cache was empty so expectations were never actually set on drop ship orders. Refactored tests to capture deliver! call count.