Sha256: 3f95773ffa252abf319b6a056338a74126c1f775b94f6fc256e5be67f6a35c8c

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe "FedEx Attributes" do
  it "should convert full country names to country codes" do
    fedex = new_fedex
    rates = fedex.rate
    rates.send(:country_code, "United States").should == "US"
  end
  
  it "should convert full state names to state codes" do
    fedex = new_fedex
    rates = fedex.rate
    rates.send(:state_code, "Texas").should == "TX"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
binarylogic-shippinglogic-1.0.4 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.0.5 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.0.6 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.0.7 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.0.8 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.1.0 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.1.1 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.1.2 spec/fedex/request_spec.rb
binarylogic-shippinglogic-1.1.3 spec/fedex/request_spec.rb