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

Version Path
twilio-ruby-4.13.0 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.12.1 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.11.1 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.11.0 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.10.0.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.10.0 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.9.1 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.9.1.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.9.0 spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.9.0.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.8.3.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.8.2.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.8.1.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.8.0.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.7.0.edge spec/rest/ip-messaging/channel_spec.rb
twilio-ruby-4.6.0.edge spec/rest/ip-messaging/channel_spec.rb