Sha256: badee9a560020b912e90bfad4afbf887259d0b3cc3eb332a2a4244e806f86cbf
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true require 'spec_helper.rb' describe 'BrandsInformation' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.preview.trusted_comms.brands_information().fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', url: 'https://preview.twilio.com/TrustedComms/BrandsInformation', ))).to eq(true) end it "receives fetch_results_with_etag responses" do @holodeck.mock(Twilio::Response.new( 200, %q[ { "update_time": "2020-05-19T19:47:51Z", "file_link": "https://www.twilio.com", "file_link_ttl_in_seconds": "900", "url": "https://preview.twilio.com/TrustedComms/BrandsInformation" } ] )) actual = @client.preview.trusted_comms.brands_information().fetch() expect(actual).to_not eq(nil) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twilio-ruby-5.38.0 | spec/integration/preview/trusted_comms/brands_information_spec.rb |
twilio-ruby-5.37.0 | spec/integration/preview/trusted_comms/brands_information_spec.rb |