Sha256: 946cf14cbe23c9c0084d239747f07d452ca31b0235075d8f838e3dc2aa2c0c52

Contents?: true

Size: 716 Bytes

Versions: 22

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class AccessScopeTest < Test::Unit::TestCase
  test 'access scope does not use the versioned resource urls' do
    fake(
      'access_scopes',
      url: 'https://shop2.myshopify.com/admin/oauth/access_scopes.json',
      method: :get,
      status: 201,
      body: load_fixture('access_scopes'),
      extension: false
    )

    unstable_version = ShopifyAPI::Session.new(domain: 'shop2.myshopify.com', token: 'token2', api_version: :unstable)

    ShopifyAPI::Base.activate_session(unstable_version)

    scope_handles = ShopifyAPI::AccessScope.find(:all).map(&:handle)

    assert_equal(['write_product_listings', 'read_shipping'], scope_handles)
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
shopify_api-9.5.2 test/access_scope_test.rb
ruby_shopify_api-1.2.0 test/access_scope_test.rb
ruby_shopify_api-1.1.0 test/access_scope_test.rb
ruby_shopify_api-1.0.0 test/access_scope_test.rb
shopify_api-9.5.1 test/access_scope_test.rb
shopify_api-9.5 test/access_scope_test.rb
shopify_api-9.4.1 test/access_scope_test.rb
shopify_api-9.4.0 test/access_scope_test.rb
shopify_api-9.3.0 test/access_scope_test.rb
shopify_api-9.2.0 test/access_scope_test.rb
shopify_api-9.1.0 test/access_scope_test.rb
shopify_api-9.0.4 test/access_scope_test.rb
shopify_api-9.0.3 test/access_scope_test.rb
shopify_api-9.0.2 test/access_scope_test.rb
shopify_api-9.0.1 test/access_scope_test.rb
shopify_api-9.0.0 test/access_scope_test.rb
shopify_api-8.1.0 test/access_scope_test.rb
shopify_api-8.0.0 test/access_scope_test.rb
shopify_api-7.1.0 test/access_scope_test.rb
shopify_api-7.0.2 test/access_scope_test.rb