Sha256: 8128d2aa8924c9f2f8e089226e4022273b5b2ac631d80a42946b74f40a19b08a

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

require 'spec_helper'
require 'fedex/shipment'

describe Fedex::Request::Pickup do
  describe "pickup availability service" do
    let(:fedex) { Fedex::Shipment.new(fedex_credentials) }
    let(:dispatch_date) {(Date.today + 1).strftime('%Y-%m-%d')}

    let(:options) do
      {:country_code => 'IN', :postal_code => '400061', :request_type => 'FUTURE_DAY', :dispatch_date => dispatch_date, :carrier_code => 'FDXE'}
    end

    it "succeeds", :vcr do
      expect {
        @pickup_availability = fedex.pickup_availability(options)
      }.to_not raise_error
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fedex-3.10.11 spec/lib/fedex/pickup_availability_spec.rb
fedex-3.10.1 spec/lib/fedex/pickup_availability_spec.rb
fedex-3.10.0 spec/lib/fedex/pickup_availability_spec.rb
fedex-3.9.1 spec/lib/fedex/pickup_availability_spec.rb
fedex-3.9.0 spec/lib/fedex/pickup_availability_spec.rb
fedex-3.8.0 spec/lib/fedex/pickup_availability_spec.rb