Sha256: 23937a6cfb03b932d2033433e84edafc7b6239a44cdde732fbb0f3d5966f2764

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'

describe Twilio::REST::IpMessaging::Services do
  it 'sets up a channels resources object' do
    client = Twilio::REST::IpMessagingClient.new 'otherSid', 'otherToken'
    service = Twilio::REST::IpMessaging::Service.new '/v1/Services', client
    expect(service).to respond_to(:channels)
    expect(service.channels.instance_variable_get('@path')).to eq(
      '/v1/Services/Channels'
    )
  end

  it 'sets up a roles resources object' do
    client = Twilio::REST::IpMessagingClient.new 'otherSid', 'otherToken'
    service = Twilio::REST::IpMessaging::Service.new '/v1/Services', client
    expect(service).to respond_to(:roles)
    expect(service.roles.instance_variable_get('@path')).to eq(
      '/v1/Services/Roles'
    )
  end

  it 'sets up a users resources object' do
    client = Twilio::REST::IpMessagingClient.new 'otherSid', 'otherToken'
    service = Twilio::REST::IpMessaging::Service.new '/v1/Services', client
    expect(service).to respond_to(:users)
    expect(service.users.instance_variable_get('@path')).to eq(
      '/v1/Services/Users'
    )
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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