Sha256: 7d2ace28275d0a5629ccf375b4b59044414ec0624c37d86db010abc088075d50
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
require 'spec_helper' describe "Trackerific" do include Trackerific describe "tracking_service" do include Trackerific context "when given a UPS tracking number" do specify { tracking_service("1Z12345E0291980793").should eq Trackerific::UPS } end context "when given a USPS tracking number" do specify { tracking_service("EJ958083578US").should eq Trackerific::USPS } end context "when given a FedEx tracking number" do specify { tracking_service("183689015000001").should eq Trackerific::FedEx } end context "when given an invalid tracking number" do specify { tracking_service("invalid tracking number").should be_nil } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trackerific-0.3.5 | spec/lib/trackerific_spec.rb |
trackerific-0.3.4 | spec/lib/trackerific_spec.rb |
trackerific-0.3.3 | spec/lib/trackerific_spec.rb |