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