Sha256: 55e915da1fa44991deed4b6cfdcd0f933c55b937332433175440ffd3707441b2

Contents?: true

Size: 1.51 KB

Versions: 22

Compression:

Stored size: 1.51 KB

Contents

=begin
#CRM Owners

#HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request.  If teams are available for your HubSpot tier, these endpoints will also indicate which team an owner belongs to. Team membership can be one of PRIMARY (default), SECONDARY, or CHILD.

The version of the OpenAPI document: v3

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.2.2

=end

require 'spec_helper'

describe Hubspot::Crm::Owners::Configuration do
  let(:config) { Hubspot::Crm::Owners::Configuration.default }

  before(:each) do
    # uncomment below to setup host and base_path
    # require 'URI'
    # uri = URI.parse("https://api.hubapi.com/crm/v3/owners")
    # Hubspot.configure do |c|
    #   c.host = uri.host
    #   c.base_path = uri.path
    # end
  end

  describe '#base_url' do
    it 'should have the default value' do
      # uncomment below to test default value of the base path
      # expect(config.base_url).to eq("https://api.hubapi.com/crm/v3/owners")
    end

    it 'should remove trailing slashes' do
      [nil, '', '/', '//'].each do |base_path|
        config.base_path = base_path
        # uncomment below to test trailing slashes
        # expect(config.base_url).to eq("https://api.hubapi.com/crm/v3/owners")
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hubspot-api-client-9.2.0 spec/owners/configuration_spec.rb
hubspot-api-client-9.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-8.0.1 spec/owners/configuration_spec.rb
hubspot-api-client-8.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-7.3.0 spec/owners/configuration_spec.rb
hubspot-api-client-7.2.0 spec/owners/configuration_spec.rb
hubspot-api-client-7.1.1 spec/owners/configuration_spec.rb
hubspot-api-client-7.1.0 spec/owners/configuration_spec.rb
hubspot-api-client-7.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-6.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-5.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-4.0.0 spec/owners/configuration_spec.rb
hubspot-api-client-3.3.0 spec/owners/configuration_spec.rb
hubspot-api-client-3.2.0 spec/owners/configuration_spec.rb
hubspot-api-client-3.1.1 spec/owners/configuration_spec.rb
hubspot-api-client-3.1.0.pre.beta spec/owners/configuration_spec.rb
hubspot-api-client-3.0.0.pre.beta spec/owners/configuration_spec.rb
hubspot-api-client-2.3.2 spec/owners/configuration_spec.rb
hubspot-api-client-2.3.1 spec/owners/configuration_spec.rb
hubspot-api-client-2.2.0 spec/owners/configuration_spec.rb