Sha256: de0fb7bd4b60672f581dc1f8db6cefb5211e305621ec1288ffe4efaeb514ddc7
Contents?: true
Size: 1.52 KB
Versions: 9
Compression:
Stored size: 1.52 KB
Contents
## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true require 'spec_helper.rb' describe 'CurrentCall' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.preview.trusted_comms.current_calls().fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', url: 'https://preview.twilio.com/TrustedComms/CurrentCall', ))).to eq(true) end it "receives read_found responses" do @holodeck.mock(Twilio::Response.new( 200, %q[ { "sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "from": "+1500123", "to": "+1500456", "status": "ringing", "reason": "Hello Jhon, your bank appointment has been confirmed.", "created_at": "2019-05-01T20:00:00Z", "caller": "Owl Bank", "logo": "https://www.twilio.com/marketing/bundles/company/img/logos/red/twilio-logo-red.png", "bg_color": "#fff", "font_color": "#f22f46", "use_case": "conversational", "manager": "Twilio", "shield_img": "https://www.twilio.com/marketing/bundles/company/img/badges/red/twilio-badge-red.png", "url": "https://preview.twilio.com/TrustedComms/CurrentCall" } ] )) actual = @client.preview.trusted_comms.current_calls().fetch() expect(actual).to_not eq(nil) end end
Version data entries
9 entries across 9 versions & 1 rubygems