Set required ship address in order in spec

The ship address of the order is properly set in
ProxyOrder#initialise_order! through OrderFactory.

The source of these spec failures seem to be a matter of how the records
are set up for the tests.
This commit is contained in:
Kristina Lim
2019-02-24 18:24:29 +08:00
parent b94c6c1fb6
commit 5f571aad2f

View File

@@ -78,7 +78,7 @@ xdescribe ProxyOrder, type: :model do
describe "resume" do
let!(:payment_method) { create(:payment_method) }
let!(:shipment) { create(:shipment) }
let(:order) { create(:order_with_totals, shipments: [shipment]) }
let(:order) { create(:order_with_totals, ship_address: create(:address), shipments: [shipment]) }
let(:proxy_order) { create(:proxy_order, order: order, canceled_at: Time.zone.now) }
let(:order_cycle) { proxy_order.order_cycle }