Sha256: 5cccc73099487646ab4d930fee06b7080744646fa83e6c66fab2334bc8e8bd39

Contents?: true

Size: 675 Bytes

Versions: 13

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'

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

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

    let(:params) { { auth_names: 'ouath2' } }
 
    before do
      allow(api.api_client).to receive(: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

13 entries across 13 versions & 1 rubygems

Version Path
hubspot-api-client-14.5.2 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.5.1 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.5.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.4.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.3.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.2.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.1.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-14.0.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-13.2.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-13.1.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-13.0.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-12.0.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb
hubspot-api-client-11.2.0 spec/features/cms/audit-logs/audit_logs_api_spec.rb