Skip to content

Instantly share code, notes, and snippets.

@cored
Last active January 11, 2018 14:12
Show Gist options
  • Save cored/206c54b6afa0fc5f2087f92d47017686 to your computer and use it in GitHub Desktop.
Save cored/206c54b6afa0fc5f2087f92d47017686 to your computer and use it in GitHub Desktop.
describe '#cancel_slot', vcr: { record: :once, match_requests_on: [:method, :host, :path] } do
let(:external_api_identifier) { "API_IDENTIFIER" }
let(:courier_slot) { create(:courier_slot, external_api_identifier: external_api_identifier) }
it "cancels the slot via the api client" do
ez_shipment = described_class.new.cancel_slot(courier_slot)
expect(ez_shipment.refund_status).to eq "refunded"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment