Sha256: 1cd78404770f047d36c8d5229632c9e7003db16d779db2b1fc6866bf7edd0833

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true
require 'test_helper'

class ApiVersionTest < Test::Unit::TestCase
  test ".admin_versions returns array of api versions for admin" do
    versions = [
      {
        "handle": "2019-01",
        "display_name": "2019-01",
        "supported": true,
        "latest_supported": false
      },
      {
        "handle": "2019-04",
        "latest_supported": false,
        "display_name": "2019-04",
        "supported": true
      },
      {
        "handle": "2019-07",
        "latest_supported": false,
        "display_name": "2019-07",
        "supported": true
      },
      {
        "handle": "2019-10",
        "latest_supported": false,
        "display_name": "2019-10",
        "supported": true
      },
      {
        "handle": "2020-01",
        "latest_supported": true,
        "display_name": "2020-01 (Latest)",
        "supported": true
      },
      {
        "handle": "unstable",
        "latest_supported": false,
        "display_name": "unstable",
        "supported": false
      }
    ].to_json


    assert_equal versions, ShopifyAPI::Meta.admin_versions.to_json

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/meta_test.rb
shopify_api-9.1.0 test/meta_test.rb
shopify_api-9.0.4 test/meta_test.rb
shopify_api-9.0.3 test/meta_test.rb
shopify_api-9.0.2 test/meta_test.rb
shopify_api-9.0.1 test/meta_test.rb
shopify_api-9.0.0 test/meta_test.rb
shopify_api-8.1.0 test/meta_test.rb