Sha256: 91dbea9b911bdf846f5941d1b3d3041176deebc366fdfcc4e47cbc963f67f67f
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) RSpec.describe Ucpaas::Call do let(:target_class) do Class.new do include Ucpaas::Call end end subject { target_class.new } it :dull_call do client_resp = { 'clientNumber' => '1111' } call_resp = { 'resp' => { 'callback' => { 'callId' => '1111' } } } expect(subject).to receive(:find_or_create_client).and_return(client_resp) expect(subject).to receive(:post).and_return(call_resp) result = subject.dull_call('appid', 'from', 'to') expect(result).to have_key('callId') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ucpaas-0.1.4 | spec/ucpaas/call_spec.rb |
ucpaas-0.1.3 | spec/ucpaas/call_spec.rb |
ucpaas-0.1.2 | spec/ucpaas/call_spec.rb |