Sha256: b08c093347de208e806950a58b8f6f9a00efcdc144e3f71129821cb707c2baad

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe "FedEx Track" do
  it "should track the package" do
    use_response(:basic_track)
    fedex = new_fedex
    events = fedex.track(:tracking_number => fedex_tracking_number)
    
    events.size.should == 7
    event = events.first
    event.name.should == "Delivered"
    event.type.should == "DL"
    event.occured_at.should == Time.parse("Mon Dec 08 10:43:37 -0500 2008")
    event.city.should == "Sacramento"
    event.state.should == "CA"
    event.postal_code.should == "95817"
    event.country.should == "US"
    event.residential.should == false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binarylogic-shippinglogic-0.9.0 spec/fedex/track_spec.rb
binarylogic-shippinglogic-1.0.0 spec/fedex/track_spec.rb