Sha256: 473ce50f8c8d62d05ccd3864cbb9c515fd8f856e8c5929087e5471f8af2651f2

Contents?: true

Size: 685 Bytes

Versions: 24

Compression:

Stored size: 685 Bytes

Contents

require 'spec_helper'
require 'hubspot/discovery/base_module_client'

describe 'Hubspot::Discovery::BaseModuleClient' do
  class Hubspot::Discovery::TestModuleClass
    def api_classes
      %i[
        settings
        subscriptions
      ].freeze
    end

    def api_modules
      %i[
        automation
        cms
      ].freeze
    end

    include Hubspot::Discovery::BaseModuleClient
  end

  subject(:client) { Hubspot::Discovery::TestModuleClass.new(access_token: 'test') }
  
  it { is_expected.to respond_to(:automation) }
  it { is_expected.to respond_to(:cms) }
  it { is_expected.to respond_to(:settings_api) }
  it { is_expected.to respond_to(:subscriptions_api) }
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hubspot-api-client-19.0.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-18.0.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.2.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.1.1 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.1.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.0.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.0.0.pre.beta.4 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.0.0.pre.beta.3 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.0.0.pre.beta.2 spec/discovery/base_module_client_spec.rb
hubspot-api-client-17.0.0.pre.beta.1 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.4.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.3.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.2.1 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.2.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.1.1 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.1.0 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.0.4 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.0.3 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.0.2 spec/discovery/base_module_client_spec.rb
hubspot-api-client-16.0.1 spec/discovery/base_module_client_spec.rb