Sha256: c407bc848635a6a6fb7a85811f248a1bd035c451aa23d0c5e884a116f9365161

Contents?: true

Size: 589 Bytes

Versions: 23

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::TaskRouter::Reservations do
  it 'creates a reservation object' do
    task = Twilio::REST::TaskRouter::Task.new('someUri', 'someClient')
    expect(task).to respond_to(:reservations)
    expect(task.reservations.instance_variable_get('@path')).to eq('someUri/Reservations')
  end
  it 'gets a reservation object' do
    worker = Twilio::REST::TaskRouter::Worker.new('someUri', 'someClient')
    expect(worker).to respond_to(:reservations)
    expect(worker.reservations.instance_variable_get('@path')).to eq('someUri/Reservations')
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.12.1 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.11.1 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.11.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.10.0.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.10.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.9.1 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.9.1.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.9.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.9.0.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.8.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.7.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.8.3.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.8.2.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.8.1.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.8.0.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.6.2 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.6.1 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.6.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.7.0.edge spec/rest/task_router/reservation_spec.rb