Sha256: e1af56dba1cbbaaa89324ae55f78bd25968db689d4a11b3ecd438da63d707fb5
Contents?: true
Size: 636 Bytes
Versions: 32
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' module Spree describe OrderStockLocation do describe ".fulfill_for_order_with_stock_location" do subject { OrderStockLocation.fulfill_for_order_with_stock_location(order, stock_location) } let(:order) { create(:order) } let(:stock_location) { create(:stock_location) } let!(:order_stock_location) { Spree::OrderStockLocation.create!(order: order, stock_location: stock_location) } it "fulfills the shipment for the order and stock location combination" do subject expect(order_stock_location.reload.shipment_fulfilled).to eq(true) end end end end
Version data entries
32 entries across 32 versions & 1 rubygems