Sha256: fc11872e8289eeeedc7a174f80d20f479093edb7cd02ec27ad1a50a2b1c9c754
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'rubygems' require 'spec' require File.dirname(__FILE__) + "/environment" $TESTING = true $DEBUG = true describe "Shipping" do if ENV['DO_IT_LIVE'] # http://www.youtube.com/watch?v=2tJjNVVwRCY&feature=related describe "UPS" do it "should work" do rates = UPSRateRequest.new( :zip => "98125", :country => "US", :weight => "5.00", # optional # :city => "Seattle", # :state => "WA", :request_type => "Shop" # take out shop, and it'll return one ground rate ).do rates.should_not be_nil rates.size.should > 1 # comment unless request_type => 'Shop' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
woahdae-consumer-0.8.1 | examples/shipping/shipping_spec.rb |
woahdae-consumer-0.8.2 | examples/shipping/shipping_spec.rb |