shipping_zone_test.rb 382 B

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