Sha256: 1c3274a55c546271c6c1f750caa096cf1d1b2de0d54b545f5f0396d03561e65f
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' module FedexShip describe 'ServiceAvailability' do let(:fedex) { Shipment.new(fedex_credentials) } let(:origin) do {:postal_code => '400012', :country_code => 'IN'} end let(:destination) do { :postal_code => '400020', :country_code => 'IN'} end let(:options) do {:origin => origin, :destination => destination, :ship_date => '2014-06-28', :carrier_code => 'FDXE'} end context 'Check Availability', :vcr do it "succeeds" do expect { @service_availability = fedex.service_availability(options) }.to_not raise_error expect(@service_availability.class).not_to eq(FedexShip::RateError) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fedex_ship-0.1.0 | spec/lib/fedex_ship/service_availability_spec.rb |