Sha256: a42075d48efcefe8aba72c271096d9b43def21cdbd4ef16ec62c56ff5d4f8d57

Contents?: true

Size: 358 Bytes

Versions: 49

Compression:

Stored size: 358 Bytes

Contents

require 'test_helper'

class ShippingZoneTest < Test::Unit::TestCase
  test "get all should get all shipping zones" do
    fake 'shipping_zones', :method => :get, :status => 200, :body => load_fixture('shipping_zones')
    checkout = ShopifyAPI::ShippingZone.all
    assert_equal 1, checkout.first.id
    assert_equal "Canada", checkout.first.name
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/shipping_zone_test.rb
shopify_api-9.1.0 test/shipping_zone_test.rb
shopify_api-9.0.4 test/shipping_zone_test.rb
shopify_api-9.0.3 test/shipping_zone_test.rb
shopify_api-9.0.2 test/shipping_zone_test.rb
shopify_api-9.0.1 test/shipping_zone_test.rb
shopify_api-9.0.0 test/shipping_zone_test.rb
shopify_api-8.1.0 test/shipping_zone_test.rb
shopify_api-8.0.0 test/shipping_zone_test.rb
shopify_api-7.1.0 test/shipping_zone_test.rb
shopify_api-7.0.2 test/shipping_zone_test.rb
shopify_api-7.0.1 test/shipping_zone_test.rb
shopify_api-7.0.0 test/shipping_zone_test.rb
shopify_api-6.0.0 test/shipping_zone_test.rb
shopify_api-5.2.4 test/shipping_zone_test.rb
shopify_api-5.2.3 test/shipping_zone_test.rb
shopify_api-5.2.2 test/shipping_zone_test.rb
shopify_api-5.2.1 test/shipping_zone_test.rb
shopify_api-5.2.0 test/shipping_zone_test.rb
shopify_api-5.1.0 test/shipping_zone_test.rb