Sha256: 542d2fc9c1ed0a0a43ae98956c31b92accf829d3aef64dc5070898a7b0f2ad93

Contents?: true

Size: 664 Bytes

Versions: 2

Compression:

Stored size: 664 Bytes

Contents

require 'test_helper'

class UPSTrackingNumberTest < Minitest::Test
  context "a UPS tracking number" do
    ["1Z5R89390357567127", "1Z879E930346834440", "1Z410E7W0392751591", "1Z8V92A70367203024"].each do |valid_number|
      should "return ups with valid number #{valid_number}" do
        should_be_valid_number(valid_number, TrackingNumber::UPS, :ups)
      end

      should "fail on check digit changes on #{valid_number}" do
        should_fail_on_check_digit_changes(valid_number)
      end

      should "detect #{valid_number} regardless of spacing" do
        should_detect_number_variants(valid_number, TrackingNumber::UPS)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracking_number-0.10.1 test/ups_tracking_number_test.rb
tracking_number-0.10.0 test/ups_tracking_number_test.rb