Sha256: 808b3b9218b53bc5b3a19c5e79727b0400292fa7e401a11832b736564512fada
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
require "spec_helper" module ShipCompliant describe CommitSalesOrderResult do it_behaves_like "BaseResult" context "shipments" do it "returns the shipments as an array" do expect(subject.shipments).to eq([ { key: 'SHIPMENT-KEY', is_committed: true } ]) end end context "committed_shipments" do it "returns the shipment keys for committed shipments" do expect(subject.committed_shipments).to eq(['SHIPMENT-KEY']) end end subject do CommitSalesOrderResult.new({ shipments: { shipment_commit_response: { key: "SHIPMENT-KEY", is_committed: true } } }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ship_compliant-0.2.1 | spec/lib/ship_compliant/commit_sales_order_result_spec.rb |