Sha256: f0991d11133f2d6dff47645f482417dc65afd901e1f6d9b66b09f2576bb09107
Contents?: true
Size: 1.52 KB
Versions: 19
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[ { "bg_color": "#fff", "caller": "Owl Bank", "created_at": "2019-05-01T20:00:00Z", "font_color": "#f22f46", "from": "+1500123", "logo": "https://www.twilio.com/marketing/bundles/company/img/logos/red/twilio-logo-red.png", "manager": "Twilio", "reason": "Hello Jhon, your bank appointment has been confirmed.", "shield_img": "https://www.twilio.com/marketing/bundles/company/img/badges/red/twilio-badge-red.png", "sid": "CQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "status": "ringing", "to": "+1500456", "url": "https://preview.twilio.com/TrustedComms/CurrentCall", "use_case": "conversational" } ] )) actual = @client.preview.trusted_comms.current_calls().fetch() expect(actual).to_not eq(nil) end end
Version data entries
19 entries across 19 versions & 1 rubygems