Sha256: 5d862d0cc0fb4f6bbafc16ef78a8c7891df9e2aa4c8a5bced16e5c136eaf06b2
Contents?: true
Size: 479 Bytes
Versions: 8
Compression:
Stored size: 479 Bytes
Contents
require 'test_helper' class LabelResponseTest < Minitest::Test include ActiveShipping::Test::Fixtures def test_build_label_from_xml_response str = xml_fixture('ups/shipment_accept_response') mapping = Hash.from_xml(str).values.first response = LabelResponse.new(true, nil, mapping) assert_equal 1, response.labels.count assert_equal '1ZA03R691591538440', response.labels.first[:tracking_number] assert response.labels.first[:image] end end
Version data entries
8 entries across 8 versions & 1 rubygems