Sha256: e45f01c7dcb4fad008660fe272161fed6a85d34e52481f0b596c6860f7dc947f
Contents?: true
Size: 824 Bytes
Versions: 16
Compression:
Stored size: 824 Bytes
Contents
require 'spec_helper' describe Twilio::REST::IpMessaging::Channels do it 'sets up a members resources object' do client = Twilio::REST::IpMessagingClient.new 'otherSid', 'otherToken' service = Twilio::REST::IpMessaging::Channel.new '/v1/Services/1/Channels/1', client expect(service).to respond_to(:members) expect(service.members.instance_variable_get('@path')).to eq( '/v1/Services/1/Channels/1/Members' ) end it 'sets up a messages resources object' do client = Twilio::REST::IpMessagingClient.new 'otherSid', 'otherToken' service = Twilio::REST::IpMessaging::Channel.new '/v1/Services/1/Channels/1', client expect(service).to respond_to(:messages) expect(service.messages.instance_variable_get('@path')).to eq( '/v1/Services/1/Channels/1/Messages' ) end end
Version data entries
16 entries across 16 versions & 1 rubygems