Sha256: 8acc019de0d983fa5c33a4cec83e6fe7f11686f4b0c36bc08fb465f5c8bb53b2
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "FedEx Service" do it "should not hit fedex until needed" do # If fedex was hit we would get an exception before the response is blank use_response(:blank) lambda { new_fedex.track(:tracking_number => fedex_tracking_number) }.should_not raise_error end it "should hit fedex when needed" do use_response(:blank) lambda { new_fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error) end it "should delegate the class method to the target" do use_response(:track_defaults) new_fedex.track(:tracking_number => fedex_tracking_number).class.should == Shippinglogic::FedEx::Track::Details end end
Version data entries
4 entries across 4 versions & 1 rubygems