Last active
January 11, 2018 14:12
-
-
Save cored/206c54b6afa0fc5f2087f92d47017686 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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