Sha256: 970117d508301c87ef895a7a4a2a5094a03f8f1195828e99038f27b309d06b93
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
require 'test_helper' class DHLTrackingNumberTest < Test::Unit::TestCase context "a DHL tracking number" do ["73891051146"].each do |valid_number| should "return dhl for #{valid_number}" do t = TrackingNumber.new(valid_number) assert_equal :dhl, t.carrier assert t.valid? end should "detect #{valid_number} regardless of spacing" do should_detect_number_variants(valid_number, TrackingNumber::DHL) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracking_number-0.3.1 | test/test_dhl_tracking_number.rb |
tracking_number-0.3.0 | test/test_dhl_tracking_number.rb |