Sha256: 067b725040c25f913c64b92d602cc1cfa58c2ca1edfdbd5e2507d9492619cb1e

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 Bytes

Contents

require 'spec_helper'

describe 'Hubspot::Cms::AuditLogs::DefaultApi' do
  subject(:default_api) { Hubspot::Cms::AuditLogs::DefaultApi.new }
  
  it { is_expected.to respond_to(:get_page) }

  describe '#get_page' do
    subject(:new_options_auth_names) { default_api.get_page(params)[:auth_names] }

    let(:params) { { auth_names: 'ouath2' } }
 
    before do
      default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, '']  }
    end

    it { is_expected.to eq params[:auth_names] }

    context 'with hapikey' do
      let(:params) { { auth_names: 'hapikey' } }

      it { is_expected.to eq params[:auth_names] }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hubspot-api-client-10.1.1 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-10.1.0 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-10.0.1 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-10.0.0 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-9.6.0 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-9.5.1 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-9.5.0 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-9.4.0 spec/features/cms/audit-logs/default_api_spec.rb
hubspot-api-client-9.3.0 spec/features/cms/audit-logs/default_api_spec.rb