Sha256: 1a3afb0380753cb983e5968d5d4bc0c1517e4c0b06c1345e10c992312607ca34
Contents?: true
Size: 841 Bytes
Versions: 4
Compression:
Stored size: 841 Bytes
Contents
require "spec_helper" module ShipCompliant describe GetInventoryDetails do before { savon.mock! } after { savon.unmock! } it "gets inventory details" do message = { 'Request' => { 'Security' => { 'PartnerKey' => 'abc-123', 'Username' => 'bob@example.com', 'Password' => 'secret' }, 'BrandKey' => 'BRAND-KEY', 'FulfillmentLocation' => 'FULFILLMENT-LOCATION', } } savon.expects(:get_inventory_details) .with(message: message) .returns(File.read('spec/fixtures/void_order_success.xml')) result = GetInventoryDetails.call( brand_key: 'BRAND-KEY', fulfillment_location: 'FULFILLMENT-LOCATION' ) result.should be_kind_of(GetInventoryDetailsResult) end end end
Version data entries
4 entries across 4 versions & 1 rubygems