Sha256: 21475a6a92175924cbe1b81e8016f311e7ca9b5945293839dca68eebfdfdc838
Contents?: true
Size: 788 Bytes
Versions: 16
Compression:
Stored size: 788 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Zoom::Actions::SipAudio do let(:zc) { zoom_client } let(:args) { { account_id: '1' } } describe '#sip_trunks_internal_numbers_add action' do before :each do stub_request( :post, zoom_url("/accounts/#{args[:account_id]}/sip_trunk/internal_numbers") ).to_return(body: json_response('sip_audio', 'sip_trunks_internal_numbers_add'), headers: { 'Content-Type' => 'application/json' }) end it 'returns a hash' do expect(zc.sip_trunks_internal_numbers_add(args)).to be_kind_of(Hash) end it 'raises an error when missing a required param' do expect { zc.sip_trunks_internal_numbers_add }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s) end end end
Version data entries
16 entries across 16 versions & 1 rubygems