Sha256: db8a14a087ff0e838cd12759d4c04fa16c300460a291e381453fba3888fb8572

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

require 'spec_helper'

module TrackingNumberValidator
  describe FedExGroundValidator do
    [
      "1010095723370011139700578986681398",
      "1010095723370015585700578986681538",
      "1010095723370011040100578986681527",
      "1010095723371112913600578986681516",
      "1010095723370963160600578986681505",
      "1010095723370966750900578986681490",
      "1010095723371121716100578986681480",
      "1010095723370011129200578986681630",
      "1010098123400001016300578986681620",
      "1010095723370835237900578986681619",
      "1010095723371180347700578986681608",
      "1010095723370938231400578986681582",
      "1010095723370011934800578986681571",
      "1010095723370011351600578986681560",
      "1010098123400009720400578986681550",
      "1010095723370011108900578986681549",
      "1010095723220011332600578986681240",
      "1010095723220011464900578986681230",
      "1010095723220825046800578986681229",
      "1010095723221121716400578986681218",
      "1010095723220011831600578986681207",
      "1010095723220965668200578986681192",
      "1010095723221116415900578986681300",
      "1010095723220011330600578986681284",
      "1010095723221132476600578986681273",
      "1010095723220961206600578986681251",
      "1010095723220011161600578986681310",
      "1010095723220966750900578986681321",
      "1010095723070937032500578986680830",
      "1010095721120011914600578986678211",
      "1010095723070011139700578986680895",
      "1010095723070937599600578986680873"
    ].each do |tracking_number|
      it "tracking number: #{tracking_number} should be valid" do
        validator = FedExGroundValidator.new(tracking_number)
        expect(validator).to be_valid
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracking_number_validator-0.0.2 spec/lib/traking_number_validator/fed_ex_ground_validator_spec.rb
tracking_number_validator-0.0.1 spec/lib/traking_number_validator/fed_ex_ground_validator_spec.rb