Sha256: 60ae197b4d425032dd58783f7f18ad926031c712a764833b38d56aa87d73fe19
Contents?: true
Size: 1.08 KB
Versions: 14
Compression:
Stored size: 1.08 KB
Contents
## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true require 'spec_helper.rb' describe 'Schema' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.events.v1.schemas('id').fetch() }.to raise_exception(Twilio::REST::TwilioError) expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', url: 'https://events.twilio.com/v1/Schemas/id', ))).to eq(true) end it "receives fetch responses" do @holodeck.mock(Twilio::Response.new( 200, %q[ { "id": "DataTaps.TestEventSchema", "url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema", "last_created": "2018-07-30T20:00:00Z", "last_version": 1, "links": { "versions": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions" } } ] )) actual = @client.events.v1.schemas('id').fetch() expect(actual).to_not eq(nil) end end
Version data entries
14 entries across 14 versions & 1 rubygems