Sha256: 55c55913b2dab956f471b1a3bfff6634936ce7d0c76dcf7d813794d010010c0d

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 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,
      },
    ].as_json

    assert_equal versions, ShopifyAPI::Meta.admin_versions.as_json
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 test/meta_test.rb
ruby_shopify_api-1.1.0 test/meta_test.rb
ruby_shopify_api-1.0.0 test/meta_test.rb
shopify_api-9.5.1 test/meta_test.rb
shopify_api-9.5 test/meta_test.rb