Sha256: e6a6d201001b8e3dd2627d4abdb773cc32ae73a6426637fa40e71e1655d5b001

Contents?: true

Size: 505 Bytes

Versions: 9

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe EasyPost::Tracker do
  describe '#create' do
    it 'tracks' do
      tracking_code = 'EZ2000000002'
      carrier = 'usps'

      tracker = EasyPost::Tracker.create({
        tracking_code: tracking_code,
        carrier: carrier
      })

      expect(tracker.carrier).to eq(carrier.upcase)
      expect(tracker.tracking_code).to eq(tracking_code)
      expect(tracker.status).to eq("in_transit")
      expect(tracker.tracking_details.length).to be > 0
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
easypost-2.1.8 spec/tracker_spec.rb
easypost-2.1.7 spec/tracker_spec.rb
easypost-2.1.6 spec/tracker_spec.rb
easypost-2.1.5 spec/tracker_spec.rb
easypost-2.1.4 spec/tracker_spec.rb
easypost-2.1.3 spec/tracker_spec.rb
easypost-2.1.2 spec/tracker_spec.rb
easypost-2.1.1 spec/tracker_spec.rb
easypost-2.0.15 spec/tracker_spec.rb