Sha256: 995e452e115ea9fc981237964b6ed9ab3bbb3ca0f6392734615ef1736017e25b
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubspot-api-client-11.1.1 | spec/features/cms/audit-logs/audit_logs_api_spec.rb |
hubspot-api-client-11.1.0 | spec/features/cms/audit-logs/audit_logs_api_spec.rb |