shipping_zone_test.rb 358 B

12345678910
  1. require 'test_helper'
  2. class ShippingZoneTest < Test::Unit::TestCase
  3. test "get all should get all shipping zones" do
  4. fake 'shipping_zones', :method => :get, :status => 200, :body => load_fixture('shipping_zones')
  5. checkout = ShopifyAPI::ShippingZone.all
  6. assert_equal 1, checkout.first.id
  7. assert_equal "Canada", checkout.first.name
  8. end
  9. end